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.
I was wondering how you could take 1 string, split it into 2 with
Share
Update
Note that on some operating systems,
strtokman page mentions:An example with
strsepis shown below: