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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does exist a XXX(str1,str2,start,end) function to extract characters f

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hello.

Working with 'string.h', if I try to extract from:
Anthony;Peterson;234-456-433;a.peterson@jui.co.uk

each value, does not exist a function to extract these values?

I mean:

idonotknow(myValue,myLine,a,b);
Where 'a' and 'b' are occurences of ';'.

Any help is appreciate...
 
Of course it exists, and it is included in the CRT
It is called:
strtok

Look for it in MSDN

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top