From 2cb9fbfe059354d06c088e090b6af7238b4fa806 Mon Sep 17 00:00:00 2001 From: "Andrey V.Kosteltsev" Date: Sat, 24 Sep 2022 16:49:18 +0300 Subject: Initial commit --- src/utils.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/utils.h (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 0000000..e56fe14 --- /dev/null +++ b/src/utils.h @@ -0,0 +1,23 @@ + +#ifndef __UTILS_H +#define __UTILS_H + + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAX_ERROR_MSG_SIZE PATH_MAX + + +extern void *xmalloc( size_t ); +extern void *xrealloc( void *, size_t ); + +extern char *dupstr( char *s ); + + +#ifdef __cplusplus +} +#endif + +#endif /* __UTILS_H */ -- cgit v1.2.3