X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstkstring.h;h=62f9a514b9200fed4b6e2eb4fef8f4ebcf3ad4f1;hb=05ffab94be8da943cffb8fb30d7073ab78aef94c;hp=d0d6ad7f34bdc5a2ad412817f05aaa2051b53b5e;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;p=libucw.git diff --git a/ucw/stkstring.h b/ucw/stkstring.h index d0d6ad7f..62f9a514 100644 --- a/ucw/stkstring.h +++ b/ucw/stkstring.h @@ -15,6 +15,7 @@ #include #include #include +#include #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; })