summaryrefslogtreecommitdiffstats
path: root/hw4/l4basic/l4str.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw4/l4basic/l4str.h')
-rw-r--r--hw4/l4basic/l4str.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/hw4/l4basic/l4str.h b/hw4/l4basic/l4str.h
new file mode 100644
index 0000000..40bb7fe
--- /dev/null
+++ b/hw4/l4basic/l4str.h
@@ -0,0 +1,15 @@
+#include "memwrap.h"
+/* This file is modified by autogen.sh */
+/* vim: set sw=4 ts=4 sts=4 et: */
+#ifndef LBS_STR_H
+#define LBS_STR_H
+
+#include <l4common.h>
+
+#define LBS_STR_STATIC_STRLEN(x) (sizeof(x)/sizeof(char) - 1)
+#define LBS_STR_ARRAY_LEN(x,t) (sizeof(x)/sizeof(t))
+
+bool lbs_str_has_suffix (const char* str, const char* suffix);
+char* lbs_str_printf (const char* format, ...);
+
+#endif /* LBS_STR_H */