Skip to content
Snippets Groups Projects
Commit 0f7b4267 authored by deuce's avatar deuce
Browse files

Add support for C, S, and p conversions. C and S are not yet implemented

as I'm unsure as to how widely supported they are.
parent 7a4d1429
No related branches found
No related tags found
No related merge requests found
......@@ -314,6 +314,10 @@ char *xp_asprintf_next(char *format, int type, ...)
break;
}
break;
case 'C':
/* ToDo wide chars... not yet supported */
correct_type=XP_PRINTF_TYPE_CHAR;
break;
case 'c':
switch(modifier) {
case 'l':
......@@ -322,6 +326,10 @@ char *xp_asprintf_next(char *format, int type, ...)
correct_type=XP_PRINTF_TYPE_CHAR;
}
break;
case 'S':
/* ToDo wide chars... not yet supported */
correct_type=XP_PRINTF_TYPE_CHARP;
break;
case 's':
switch(modifier) {
case 'l':
......@@ -330,6 +338,9 @@ char *xp_asprintf_next(char *format, int type, ...)
correct_type=XP_PRINTF_TYPE_CHARP;
}
break;
case 'p':
correct_type=XP_PRINTF_TYPE_VOIDP;
break;
}
}
if(type==XP_PRINTF_TYPE_AUTO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment