Created
November 1, 2011 04:02
-
-
Save cammckinnon/1329879 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* sscanf example */ | |
#include <stdio.h> | |
int main () | |
{ | |
char sentence []="Rudolph is 15 years old"; | |
char str [20]; | |
int i; | |
sscanf (sentence,"%s is %d",str,&i); | |
printf ("%s -> %d\n",str,i); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment