Click to See Complete Forum and Search --> : Char Seperator


BageDevimo
November 1st, 2007, 01:33 AM
Heya,

Im using Winsock to recieve a string.. eg "Hello, World". As usual with winsock, i recieve it in a character array. What I wanna do, im making some kinda, something, which stores each word in a sperate thing.
So, I guess this is string seperation..? Anyone shed some light?

Sorry if this should be in the Winsock section, and for all the 'something's and 'thing's..

BageDevimo,

S_M_A
November 1st, 2007, 04:04 AM
You can for instance use strtok to split it. What you do with the splitted parts I depends on how you will use them later on.