X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstkstring.c;h=d3c6d554af7b7657a3cc06ca3697d963dbe0e0e9;hb=6c4c397f94ec5f5df6bcc178fb5fa4e84d3505fc;hp=32bd974336c36e4781612f776b1657eb42e9f58f;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/stkstring.c b/ucw/stkstring.c index 32bd9743..d3c6d554 100644 --- a/ucw/stkstring.c +++ b/ucw/stkstring.c @@ -9,27 +9,27 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/stkstring.h" -#include "ucw/string.h" +#include +#include +#include #include -uns -stk_array_len(char **s, uns cnt) +uint +stk_array_len(char **s, uint cnt) { - uns l = 1; + uint l = 1; while (cnt--) l += strlen(*s++); return l; } void -stk_array_join(char *x, char **s, uns cnt, uns sep) +stk_array_join(char *x, char **s, uint cnt, uint sep) { while (cnt--) { - uns l = strlen(*s); + uint l = strlen(*s); memcpy(x, *s, l); x += l; s++; @@ -39,10 +39,10 @@ stk_array_join(char *x, char **s, uns cnt, uns sep) *x = 0; } -uns +uint stk_printf_internal(const char *fmt, ...) { - uns len = 256; + uint len = 256; char *buf = alloca(len); va_list args, args2; va_start(args, fmt); @@ -62,10 +62,10 @@ stk_printf_internal(const char *fmt, ...) } } -uns +uint stk_vprintf_internal(const char *fmt, va_list args) { - uns len = 256; + uint len = 256; char *buf = alloca(len); va_list args2; for (;;) @@ -85,7 +85,7 @@ stk_vprintf_internal(const char *fmt, va_list args) } void -stk_hexdump_internal(char *dst, const byte *src, uns n) +stk_hexdump_internal(char *dst, const byte *src, uint n) { mem_to_hex(dst, src, n, ' '); }