diff options
author | Danny Holman <dholman@gymli.org> | 2023-07-26 11:40:36 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2023-07-26 11:40:36 -0500 |
commit | f3d50195e43fd33e7f36e4e55a84af790b7de5d1 (patch) | |
tree | 271f11ccb2297375245df5f9783ca31d84dd5c52 /client/include/util.h | |
parent | ee0f0f95d6972e66c56812e0e3abe9275d5f0fdc (diff) |
common: create the common directory
Create a directory for files that are shared between the reference
client and server. Refactor the build scripts to reflect this
restructuring.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'client/include/util.h')
-rw-r--r-- | client/include/util.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/client/include/util.h b/client/include/util.h deleted file mode 100644 index 39c130b..0000000 --- a/client/include/util.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef MRAT_UTIL_H -#define MRAT_UTIL_H - -#include <stddef.h> - -#define container_of(ptr, type, member) ({ \ - const typeof(((type*)0)->member)*__mptr = (ptr); \ - (type*)((char*)__mptr - offsetof(type, member)); }) - -char* str_strip(char *str); -char** str_split(char *str, const char *delim); - -#endif |