diff options
author | quou <quou@disroot.org> | 2024-07-31 22:11:13 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-07-31 22:11:56 +1000 |
commit | 8d729883b3e134df8b9fc10f094df9fc3618bdb4 (patch) | |
tree | 8c6454372a350b98d06b74b912d56a937b992bf9 /standard.h | |
parent | 9fedd9336c48835495f74994d80795aa6e3fbecd (diff) |
string_dup and string_len
Diffstat (limited to 'standard.h')
-rw-r--r-- | standard.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3,8 +3,12 @@ #define no_mangle extern "C" +struct Arena; + int string_equal(const char* a, const char* b); int string_copy(char* dst, const char* src); +int string_len(const char* s); +char* dup_string(struct Arena* a, const char* s); /* Not safe! */ int f_to_buf(int f, char* buf); |