aboutsummaryrefslogtreecommitdiff
path: root/src/types/str.h
diff options
context:
space:
mode:
authorame <[email protected]>2025-08-12 21:54:57 -0500
committerame <[email protected]>2025-08-12 21:54:57 -0500
commit432f7792d12dadc3adb605c018176bbc7359b503 (patch)
treefac1e35fd470e1c6b3a3bdeb99daf1098b43b64e /src/types/str.h
parent5666cbf8830c8b26337eb92f4da434d0d2242dc2 (diff)
support percent encoding
Diffstat (limited to 'src/types/str.h')
-rw-r--r--src/types/str.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/types/str.h b/src/types/str.h
index 86490cc..e650542 100644
--- a/src/types/str.h
+++ b/src/types/str.h
@@ -12,6 +12,9 @@ typedef struct {
} str;
str* str_initl(const char*, size_t len);
+//str_initfl has the 'correct' behaviour where it forces the len and doesnt read extra bytes
+//plan to switch everything to str_initfl, when everything will work with it
+str* str_initfl(const char*, size_t len);
str* str_init(const char*);
void str_free(str*);
void str_push(str*, const char*);
@@ -19,4 +22,4 @@ void str_pushl(str*, const char*, size_t);
void str_clear(str*);
void str_popf(str*, int);
void str_popb(str*, int);
-#endif //__STR_H \ No newline at end of file
+#endif //__STR_H