06.08.2010, 14:12
If i use it like that it prints: "John Beer 0"
I want it to print: "Friend Nickname 1-10"
The field looks like:
line string is perfectly printed but when it comes to string seperating it prints
JOHN BEER IS MY NICK, NOT MY FRIEND'S NICK!
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);
Code:
John Beer 0