summaryrefslogtreecommitdiffstats
path: root/hw4/l4basic/l4str.h
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2014-01-12 16:42:19 +0800
committerLAN-TW <lantw44@gmail.com>2014-01-12 16:42:19 +0800
commit0c1dfc4fcbf9764633aa6cb1798e63d55af66752 (patch)
tree73eb50e8924c41cc2721c50aa731bec5ca03c196 /hw4/l4basic/l4str.h
parent57ab8916608d8b319a1b522bdb2e549ebcac1072 (diff)
downloadsp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar.gz
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar.bz2
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar.lz
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar.xz
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.tar.zst
sp2013-0c1dfc4fcbf9764633aa6cb1798e63d55af66752.zip
HW4: 準備 build system
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 */