1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to join array after splitting using strtok

Discussion in 'Meet and Greet' started by spurthy04, Aug 4, 2011.

Thread Status:
Not open for further replies.
  1. spurthy04

    spurthy04 New Member

    Joined:
    Aug 4, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    HI,

    I have code where i've split the string "abc,cde,xyz" to abc cde and xyz using strtok.

    Now, I want to join it by adding single quote to each tokenised value.
    like 'abc','cde','xyz'.

    Can anyone help me ?

    Thanks,
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page