From c19fd9f23eb52a354259ada8fa07aeaf3a7afc3d Mon Sep 17 00:00:00 2001 From: Soikk Date: Sat, 7 Jun 2025 22:31:30 +0200 Subject: Added fd/file_to_str without length specifiers --- str/str.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'str/str.h') 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); -- cgit v1.2.3