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,375
    Likes Received:
    388
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice