diff options
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 2381385..5f7c0ff 100644 --- a/src/utils.h +++ b/src/utils.h @@ -5,9 +5,16 @@ struct allocator; +struct result { + void *value; + const char* errmsg; +}; + struct allocator * new_allocator(); void delete_allocator(struct allocator * allocator); void* allocate(struct allocator * allocator, size_t size); +char* safe_sprintf(struct allocator *alct, const char* format, ...); + #endif // FVM_UTILS_H_ |
