]> mj.ucw.cz Git - libucw.git/blobdiff - lib/stkstring.h
ASSERT if now an expression
[libucw.git] / lib / stkstring.h
index f72d3c594286ffc2ea7c2531f67fedf9bdc92970..c075a3e63afcf01e3bd32c1f67196287b52a8e79 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <alloca.h>
 #include <string.h>
+#include <stdio.h>
 
 #define stk_strdup(s) ({ char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; })
 #define stk_strndup(s,n) ({ char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; })