CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Char Seperator

  1. #1
    Join Date
    Sep 2007
    Posts
    44

    Char Seperator

    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,

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Char Seperator

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured