From 71c6daf9c73d073833eda791240f5fae22b645c6 Mon Sep 17 00:00:00 2001 From: Soikk Date: Thu, 6 Nov 2025 18:22:48 +0100 Subject: Fixed typos --- str/str.c | 2 +- str/str.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/str/str.c b/str/str.c index 7767e99..052ec48 100755 --- a/str/str.c +++ b/str/str.c @@ -359,7 +359,7 @@ str file_to_nstr(char *filename, u32 len){ void str_to_file(str s, char *filename){ FILE *fp = fopen(filename, "r"); str_to_fp(s, fp); - fclose(fp) + fclose(fp); } str map_file(char *filename){ diff --git a/str/str.h b/str/str.h index 7a386c4..dbf91b9 100755 --- a/str/str.h +++ b/str/str.h @@ -113,7 +113,7 @@ str fp_to_nstr(FILE *fp, u32 len); str file_to_str(char *filename); str file_to_nstr(char *filename, u32 len); #define str_to_fd(s, fd) write(fd, s.ptr, s.len) -#define str_to_fp(s, fp) fwrite(s.ptr, sizeof(str.ptr[0]), s.len, fp) +#define str_to_fp(s, fp) fwrite(s.ptr, sizeof(s.ptr[0]), s.len, fp) void str_to_file(str s, char *filename); str map_file(char *filename); -- cgit v1.2.3