]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/stkstring.h
Added string functions for matching of prefixes and suffixes
[libucw.git] / ucw / stkstring.h
index d0d6ad7f34bdc5a2ad412817f05aaa2051b53b5e..5cd2c6b85a2540f4ca13c9879f8b4c3abda6a3b3 100644 (file)
@@ -15,6 +15,7 @@
 #include <alloca.h>
 #include <string.h>
 #include <stdio.h>
 #include <alloca.h>
 #include <string.h>
 #include <stdio.h>
+#include "ucw/string.h"
 
 #define stk_strdup(s) ({ const char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; })
 #define stk_strndup(s,n) ({ const char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; })
 
 #define stk_strdup(s) ({ const char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; })
 #define stk_strndup(s,n) ({ const char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; })