Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get each time a different word using sscanf? 1

Status
Not open for further replies.

jvff

Programmer
Apr 1, 2001
64
BR
I am trying to make a function that gets a word from a frase then at the next time the function is acessed it gets the next word. Can somebody help me? Thank you,

JVFF
 
char* x="hello world";
char y[100];
sscanf(x,"%s",y);
puts(y);
sscanf(x+6,"%s",y);
puts(y); John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top