aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pseudo.h b/pseudo.h
index 86fdd72..a568bca 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -159,6 +159,8 @@ extern char *pseudo_version;
#define PSEUDO_LIBDIR "lib"
#endif
+#define STARTSWITH(x, y) (!memcmp((x), (y), sizeof(y) - 1))
+
#ifndef PSEUDO_LOCALSTATEDIR
#define PSEUDO_LOCALSTATEDIR "var/pseudo"
#endif
@@ -191,3 +193,4 @@ extern char *pseudo_version;
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif
+