1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-21 23:29:16 +00:00

Add ERR_BADFILE

This commit is contained in:
Peter Evans 2017-12-15 16:52:26 -06:00
parent eae302e686
commit 0c82a58f79

View File

@ -2,6 +2,8 @@
#define _LOG_H_ #define _LOG_H_
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <errno.h>
#define LOG_FILENAME "/tmp/emp.log" #define LOG_FILENAME "/tmp/emp.log"
@ -9,6 +11,7 @@ enum log_errcode {
OK = 1, OK = 1,
ERR_OOM, // out of memory ERR_OOM, // out of memory
ERR_OOB, // out of bounds ERR_OOB, // out of bounds
ERR_BADFILE,
}; };
extern void log_write(int, const char *, ...); extern void log_write(int, const char *, ...);