mysql and sscanf
#1

If i use it like that it prints: "John Beer 0"

I want it to print: "Friend Nickname 1-10"
The field looks like:

Code:
Name:            FriendName:       RelationShip:
John Beer       Johny Beer                   2
Code:
    printf("%s", line);
    sscanf(line, "p<|>s[24]i", friendname, relation);
    printf("%s %d", friendname,  relation);
line string is perfectly printed but when it comes to string seperating it prints

Code:
 John Beer 0
JOHN BEER IS MY NICK, NOT MY FRIEND'S NICK!
Reply


Messages In This Thread
mysql and sscanf - by armyoftwo - 06.08.2010, 14:12
Re: mysql and sscanf - by klavins21 - 06.08.2010, 14:50
Re: mysql and sscanf - by armyoftwo - 06.08.2010, 17:19
Re: mysql and sscanf - by woot - 06.08.2010, 17:21
Re: mysql and sscanf - by armyoftwo - 06.08.2010, 17:27
Re: mysql and sscanf - by Westie - 06.08.2010, 18:05
Re: mysql and sscanf - by armyoftwo - 06.08.2010, 18:10
Re: mysql and sscanf - by Westie - 06.08.2010, 19:54
Re: mysql and sscanf - by MadeMan - 06.08.2010, 20:05
Re: mysql and sscanf - by armyoftwo - 06.08.2010, 20:09
Re: mysql and sscanf - by Daren_Jacobson - 06.08.2010, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)