Thread View: gnu.emacs.help
2 messages
2 total messages
Started by Sam Steingold
Mon, 27 Nov 1995 07:49
a smarter strtok(3)?
Author: Sam Steingold
Date: Mon, 27 Nov 1995 07:49
Date: Mon, 27 Nov 1995 07:49
24 lines
1042 bytes
1042 bytes
I would like to split a string like "[\"aaaaa\" \"bbbbb\" () \"ccc[ddd]\" ([\"eee\" ff gg hh ii] [\"jj\" kk lll mmm nn]) () (\"oooo\")]" in a sensible way: namely, into strings \"aaaaa\" \"bbbbb\" NULL \"ccc[ddd]\" ([\"eee\" ff gg hh ii] [\"jj\" kk lll mmm nn]) <--- and apply it again to this NULL \"oooo\" It doesn't look like strtok(3) will do the job, and I wonder if I'll really have to (re?)invent the wheel. Thanks! Sam -- <A HREF="http://www.math.ucla.edu/~shteingd"> Sam Steingold </A>
Re: a smarter strtok(3)?
Author: D'Arcy J.M. Cain
Date: Mon, 27 Nov 1995 11:33
Date: Mon, 27 Nov 1995 11:33
11 lines
870 bytes
870 bytes
Sam Steingold (shteingd@math.ucla.edu) wrote:
>It doesn't look like strtok(3) will do the job, and I wonder if I'll
>really have to (re?)invent the wheel.
Nope. Get xstrtok.c from http://www.druid.com/~darcy
--
D'Arcy J.M. Cain (darcy@ican.net) | Democracy is three wolves
Internet Canada Corporation | and a sheep voting on
+1 416 364 1913 (DoD#0082) (eNTP) | what's for dinner.
-- Info on Internet Canada can be found at http://www.ican.net --
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads