X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fntdll%2Fstdio%2Fsprintf.c;fp=lib%2Fntdll%2Fstdio%2Fsprintf.c;h=914a744f430cecf699dfae7bc34b1d662fc292c8;hp=fc7ea456f1d5855ebc7056ae4b99260b94d414b8;hb=7c0cf90e3b750f1f0dc83b2eec9e5c68a512c30f;hpb=ee8b63255465d8c28be3e7bd11628015708fc1ab diff --git a/lib/ntdll/stdio/sprintf.c b/lib/ntdll/stdio/sprintf.c index fc7ea45..914a744 100644 --- a/lib/ntdll/stdio/sprintf.c +++ b/lib/ntdll/stdio/sprintf.c @@ -62,8 +62,8 @@ number(char * buf, char * end, long long num, int base, int size, int precision, { char c,sign,tmp[66]; const char *digits; - const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; - const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + const char *small_digits = "0123456789abcdefghijklmnopqrstuvwxyz"; + const char *large_digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int i; digits = (type & LARGE) ? large_digits : small_digits; @@ -241,11 +241,14 @@ stringw(char* buf, char* end, const wchar_t* sw, int len, int field_width, int p return buf; } +/* + * @implemented + */ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) { int len; unsigned long long num; - int i, base; + int base; char *str, *end; const char *s; const wchar_t *sw; @@ -507,6 +510,9 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) } +/* + * @implemented + */ int sprintf(char * buf, const char *fmt, ...) { va_list args; @@ -519,6 +525,9 @@ int sprintf(char * buf, const char *fmt, ...) } +/* + * @implemented + */ int _snprintf(char * buf, size_t cnt, const char *fmt, ...) { va_list args; @@ -531,6 +540,9 @@ int _snprintf(char * buf, size_t cnt, const char *fmt, ...) } +/* + * @implemented + */ int vsprintf(char *buf, const char *fmt, va_list args) { return _vsnprintf(buf,INT_MAX,fmt,args);