Thread: How to set a delimiter for each line's string?

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    77

    How to set a delimiter for each line's string?

    for example,
    Code:
    ; :     <------- Including space!
    This is;av23afgg k;fg: k.!
    output data
    Code:
    This
    is
    av23afgg
    k
    fg
    k.!
    Don't know how to use strtok properly...

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 04-25-2008, 02:45 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. string handling
    By lessrain in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 07:36 PM
  4. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM