How to split a string to 2 strings C

Posted by Mr. Man on Stack Overflow See other posts from Stack Overflow or by Mr. Man
Published on 2010-03-26T13:17:40Z Indexed on 2010/03/26 13:33 UTC
Read the original article Hit count: 472

Filed under:
|
|

Hi, I was wondering how you could take 1 string, split it into 2 with a delimiter, such as space, and assign the 2 parts to 2 separate strings. I've tried using strtok(); but to no avail.

Thanks!

Mr. Man

© Stack Overflow or respective owner

Related posts about c

    Related posts about strings