Added support for the ll' size qualifier. Supported was only
L'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11881 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f9ac365bc0
commit
92290ecd54
@ -280,8 +280,16 @@ vsnprintf(char *buffer, size_t bufferSize, const char *format, va_list args)
|
||||
/* get the conversion qualifier */
|
||||
|
||||
qualifier = -1;
|
||||
if (format[0] == 'h' || format[0] == 'l' || format[0] == 'L')
|
||||
if (format[0] == 'h' || format[0] == 'L') {
|
||||
qualifier = *format++;
|
||||
} else if (format[0] == 'l') {
|
||||
format++;
|
||||
if (format[0] == 'l') {
|
||||
qualifier = 'L';
|
||||
format++;
|
||||
} else
|
||||
qualifier = 'l';
|
||||
}
|
||||
|
||||
/* default base */
|
||||
base = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user