blob: c9e3b5f19f550a755bd2ca00b725908cc848300d (
plain)
1
2
3
4
5
6
7
8
|
#include <stdio.h>
int main() {
char pYear[16], pMonth[16], pDay[16], pDate[64];
printf("%d\n", sscanf("Nov 19 2012", "%s%s%s", pMonth, pDay, pYear));
printf("day %s, month %s, year %s \n", pDay, pMonth, pYear);
return (0);
}
|