X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstring.c;h=602a7d730074b24ab3e4a5700994c6fe569580d4;hb=99dbc539d5ce9a0b119e7b59ed943c129f617ec0;hp=3f4c045fcea62011dac2bc8f67b779edc95848b2;hpb=9656a16dfe13dd25c0d66b684b6ddfa18881b4bb;p=libucw.git diff --git a/lib/string.c b/lib/string.c index 3f4c045f..602a7d73 100644 --- a/lib/string.c +++ b/lib/string.c @@ -16,8 +16,8 @@ /* Expands C99-like escape sequences. * It is safe to use the same buffer for both input and output. */ -byte * -str_unesc(byte *d, byte *s) +char * +str_unesc(char *d, const char *s) { while (*s) { @@ -49,7 +49,7 @@ str_unesc(byte *d, byte *s) *d++ = v; else DBG("hex escape sequence out of range"); - s = (byte *)p; + s = (char *)p; } break; default: @@ -74,10 +74,10 @@ str_unesc(byte *d, byte *s) return d; } -byte * -str_format_flags(byte *dest, const byte *fmt, uns flags) +char * +str_format_flags(char *dest, const char *fmt, uns flags) { - byte *start = dest; + char *start = dest; for (uns i=0; fmt[i]; i++) { if (flags & (1 << i))