summaryrefslogtreecommitdiff
path: root/prb_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'prb_linux.h')
-rw-r--r--prb_linux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/prb_linux.h b/prb_linux.h
index 9a6ba90..64485d6 100644
--- a/prb_linux.h
+++ b/prb_linux.h
@@ -28,6 +28,16 @@ void die(const char *error_string, ...)
_exit(1);
}
+void info(const char *format, ...)
+{
+ va_list args;
+ va_start(args, format);
+ printf("info: ");
+ vprintf(format, args);
+ printf("\n");
+ va_end(args);
+}
+
u64 sys_read_file(arena_t *arena, char **buffer, const char *filename)
{
FILE *file = fopen(filename, "rb");