Thread: split strings (and split thread)

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    7

    split strings (and split thread)

    i want to split the following string into separate variable using c program
    this is my string ->21#abcdefgh$ijklmno#0
    plz post the code if any one know

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Look up strtok() or strchr()

    And read the forums rules about (not) demanding code up front without showing some effort.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (split) yet another how to declare main thread
    By DevoAjit in forum C Programming
    Replies: 1
    Last Post: 10-28-2011, 05:54 AM
  2. Thinning a bitmap (split thread)
    By Paramjeet Kaur in forum C Programming
    Replies: 2
    Last Post: 05-20-2011, 09:38 PM
  3. Summat about cars (thread split)
    By drae in forum C Programming
    Replies: 1
    Last Post: 11-19-2010, 10:44 AM
  4. popen with a fossil (split from bumped thread)
    By leandroaz in forum Windows Programming
    Replies: 3
    Last Post: 09-12-2008, 01:47 PM
  5. Reading a book (split from the books thread)
    By mkeisu in forum C++ Programming
    Replies: 4
    Last Post: 05-05-2008, 05:37 PM