summaryrefslogtreecommitdiff
path: root/str/str.h
diff options
context:
space:
mode:
authorSoikk2025-06-07 22:31:30 +0200
committerSoikk2025-06-07 22:31:30 +0200
commitc19fd9f23eb52a354259ada8fa07aeaf3a7afc3d (patch)
tree798f5c5ceb1561d3fb7f8d917b7d56f8b520283f /str/str.h
parent3158a49e571dffcb6a17227fed290856c333ae54 (diff)
downloadsoikk-libs-c19fd9f23eb52a354259ada8fa07aeaf3a7afc3d.tar.xz
soikk-libs-c19fd9f23eb52a354259ada8fa07aeaf3a7afc3d.tar.zst
Added fd/file_to_str without length specifiers
Diffstat (limited to 'str/str.h')
-rwxr-xr-xstr/str.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/str/str.h b/str/str.h
index 4ba897f..2484c19 100755
--- a/str/str.h
+++ b/str/str.h
@@ -115,9 +115,13 @@ str sread_delim_f(char *buf, bool (*func)(char), bool func_cond);
u32 get_line_len(char *buf);
-void fd_to_str(str *s, int fd, u32 len);
+void fd_to_str(str *s, int fd);
-void file_to_str(str *s, FILE *fp, u32 len);
+void fd_to_nstr(str *s, int fd, u32 len);
+
+void file_to_str(str *s, FILE *fp);
+
+void file_to_nstr(str *s, FILE *fp, u32 len);
void print_str(str s);