X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fstkstring.c;h=d3c6d554af7b7657a3cc06ca3697d963dbe0e0e9;hb=564be9c0adf9f5796b60f2727cecc9c7274f86ff;hp=fee05ab2ee8f525c8ebcceed727e484435055d38;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/stkstring.c b/ucw/stkstring.c index fee05ab2..d3c6d554 100644 --- a/ucw/stkstring.c +++ b/ucw/stkstring.c @@ -15,21 +15,21 @@ #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, ' '); }