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