chiark / gitweb /
04848d5ecf297f719dce1327aaaf962cdfec82df
[subdirmk.git] / lib / toylib.h
1 /*
2  * subdirmk - example code
3  *  Copyright 2019 Mark Wooding
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6
7 #ifndef LIBTOY_H
8 #define LIBTOY_H
9
10 #include <string.h>
11
12 #define STRCMP(x, op, y) (strcmp((x), (y)) op 0)
13 #define STRNCMP(x, op, y, n) (strncmp((x), (y), (n)) op 0)
14 #define MEMCMP(x, op, y, n) (memcmp((x), (y), (n)) op 0)
15
16 extern const char *greeting(void);
17
18 #endif