diff options
| author | ame <[email protected]> | 2025-08-12 21:54:57 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-08-12 21:54:57 -0500 |
| commit | 432f7792d12dadc3adb605c018176bbc7359b503 (patch) | |
| tree | fac1e35fd470e1c6b3a3bdeb99daf1098b43b64e /src/types/str.h | |
| parent | 5666cbf8830c8b26337eb92f4da434d0d2242dc2 (diff) | |
support percent encoding
Diffstat (limited to 'src/types/str.h')
| -rw-r--r-- | src/types/str.h | 5 |
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 |
