]> www.git.momoyon.org Git - commonlib.git/commitdiff
[commonlib.h] c_slurp_file() -> c_read_file().
authorahmedsamyh <ahmedsamyh10@gmail.com>
Mon, 7 Apr 2025 17:20:24 +0000 (22:20 +0500)
committerahmedsamyh <ahmedsamyh10@gmail.com>
Mon, 7 Apr 2025 17:20:24 +0000 (22:20 +0500)
commonlib.h

index d1b219d088c44873b9a125b0d4757545de15f599..4b597ee2c90772dfc5a2ab3dcc3e9688af7085ac 100644 (file)
@@ -27,7 +27,7 @@
 #define log_info c_log_info\r
 #define log_warning c_log_warning\r
 \r
-#define slurp_file c_slurp_file\r
+#define read_file c_read_file\r
 #define touch_file_if_doesnt_exist c_touch_file_if_doesnt_exist\r
 \r
 #define Arena c_Arena\r
@@ -209,7 +209,7 @@ bool c_os_file_exists(cstr filename);
 //\r
 \r
 // reads entire file and gives back the file content and filesize in bytes. (caller must be responsible for freeing the string!)\r
-const char* c_slurp_file(const char* filename, int *file_size);\r
+const char* c_read_file(const char* filename, int *file_size);\r
 void c_touch_file_if_doesnt_exist(cstr file);\r
 \r
 //\r
@@ -334,7 +334,7 @@ bool c_os_file_exists(cstr filename) {
     result = ret_val;\\r
     goto defer\r
 \r
-const char *c_slurp_file(const char* filename, int *file_size) {\r
+const char *c_read_file(const char* filename, int *file_size) {\r
     FILE* f = fopen(filename, "r");\r
     char* result = NULL;\r
 \r