C library function - sscanf() - Online Tutorials Library
https://www.tutorialspoint.com/c_standard_library/c_function_sscanf.htm
The following example shows the usage of sscanf() function. Live Demo #include <stdio.h> #include <stdlib.h> #include <string.h> int main () { int day, year; char weekday[20], month[20], dtm[100]; strcpy( dtm, "Saturday March 25 1989" ); sscanf( dtm, "%s %s %d %d", weekday, month, &day, &year ); printf("%s %d, %d = %s\n", month, day, year ...
DA: 65 PA: 79 MOZ Rank: 38 Up or Down: Up