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!

Parse list of values

Status
Not open for further replies.

chigley

Programmer
Sep 30, 2002
104
GB
Hi,

If I have a char array of some values eg

"80,8080,25,1433" etc

And I want to parse this into an int array so that

myIntArray[0] returns 80
myIntArray[1] returns 8080

etc

and I don't want to use strtok, does anyone have any ideas on a simple solution?




Charlie Benger-Stevenson
Hart Hill IT Ltd
 
Have you ever read your own threads? I have wrote this parser for you some days ago!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top