On Mon, Mar 28, 2011 at 1:13 PM, John Peterson <[email protected]> wrote: > On Mon, Mar 28, 2011 at 12:14 PM, Roy Stogner <[email protected]> > wrote: >> >> >> On Mon, 28 Mar 2011, David Knezevic wrote: >> >> I'd still like to get rid of that less-portable function, especially >> if it's causing Cygwin problems... anyone know if there *is* a std:: >> way of doing equivalent tokenizing, or do I need to write my own loop >> over characters here? > > My strtok_r man page says "This interface is obsoleted by strsep(3)." > > I guess see if strsep is available in Cygwin? > > As far as C++, I'm searching now but it looks like > string::find_first_of() and friends would give some of the building > blocks required...
http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html Scroll down to Section 7.3, "A string tokenizer". I have not tested this code... -- John ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
