i need to use %s and %d in sscanf function. It is not actually working as I
expected .I simulated the issue using a sample program.
#include<stdio.h>
int main()
{
char str[100]="hello|67";
char s1[10];
int num;
sscanf(str,"%s|%d",s1,&num);
printf("%s",s1);
}
output: hello|67
I need to gete "hello" in s1 and 67 in num.
If anyone know soln, please help me.
Thanks,
Manoj Mathew
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
[Non-text portions of this message have been removed]