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:
Ingo Weinhold 2005-03-17 19:45:45 +00:00
parent f9ac365bc0
commit 92290ecd54

View File

@ -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;