--- /dev/null
+0
\ No newline at end of file
--- /dev/null
+0
\ No newline at end of file
--- /dev/null
+[INFO] `#define COMMONLIB_IMPLEMENTATION
+#include "../commonlib.h"
+
+int main(void) {
+ int file_size = -1;
+ const char *buff = c_read_file(__FILE__, &file_size);
+ C_ASSERT(file_size != -1, "We are trying to read this file...");
+
+ c_log_info("`%s` (%d bytes)", buff, file_size);
+
+ return 0;
+}
+` (298 bytes)
+++ /dev/null
-0
\ No newline at end of file
+++ /dev/null
-0
\ No newline at end of file
+++ /dev/null
-[INFO] buff: '#define COMMONLIB_IMPLEMENTATION
-#include "../commonlib.h"
-
-int main(void) {
- int file_size = 0;
- const char *buff = c_slurp_file(__FILE__, &file_size);
-
- if (file_size < 0) { return 1; }
-
- c_log_info("buff: '%s' (%d bytes)", buff, file_size);
-
- // We don't care about leaking memory since we are just exiting right away!
- return 0;
-}
-' (353 bytes)
--- /dev/null
+#define COMMONLIB_IMPLEMENTATION
+#include "../commonlib.h"
+
+int main(void) {
+ int file_size = -1;
+ const char *buff = c_read_file(__FILE__, &file_size);
+ C_ASSERT(file_size != -1, "We are trying to read this file...");
+
+ c_log_info("`%s` (%d bytes)", buff, file_size);
+
+ return 0;
+}
+++ /dev/null
-0
\ No newline at end of file
+++ /dev/null
-program: ./shift_args
-After:
-argc: 0
-argv: (null)
+++ /dev/null
-#define COMMONLIB_IMPLEMENTATION
-#include "../commonlib.h"
-
-int main(void) {
- int file_size = 0;
- const char *buff = c_slurp_file(__FILE__, &file_size);
-
- if (file_size < 0) { return 1; }
-
- c_log_info("buff: '%s' (%d bytes)", buff, file_size);
-
- // We don't care about leaking memory since we are just exiting right away!
- return 0;
-}
+++ /dev/null
-0
\ No newline at end of file
+++ /dev/null
-[INFO] buff: '#define COMMONLIB_IMPLEMENTATION
-#include "../commonlib.h"
-
-int main(void) {
- bool success = false;
- const char *buff = c_slurp_file(__FILE__, &success);
-
- if (!success) { return 1; }
-
- c_log_info("buff: '%s'", buff);
-
- // We don't care about leaking memory since we are just exiting right away!
- return 0;
-}
-'