slang-users mailing list

[2014 Date Index] [2014 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Multi-character delimiter for strchop()?

On 05.10.2014 19:16, J.B. Nicholson-Owens wrote:
> Would it be possible and appropriate to extend strchop() to allow for a
> string to be used as a delimiter to chop other strings?
> So strchop("afoobfooc", "foo", 0) would return the string array
> ["a","b","c"]?

Maybe you are looking for the following:
	strtok("afoobfooc", "foo")


For list information, visit <>.

[2014 date index] [2014 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]