|
Message-ID: <019e01cd4cd4$2ef63ec0$8ce2bc40$@net> Date: Sun, 17 Jun 2012 16:57:26 -0500 From: "jfoug" <jfoug@....net> To: <john-dev@...ts.openwall.com> Subject: RE: Is strsep() portable enough? Since it is such a non-critical, speed wise, simply write your own, put it into the proper place in JtR code, such as in misc.c, where there are some other useful str functions. I love strtok, but the smashing of contiguous separator chars is something that I really love/hate. At times it is really useful. However, most of the times, it is a problem >From: magnum [mailto:john.magnum@...hmail.com] >On 2012-06-17 22:11, Frank Dittrich wrote: >> >> currently parsing of --markov=... options is done with strtok(). >> I'd prefer using strsep(), to allow something like ... >> But I am not sure whether strsep() is portable enough. >> Any opinions? > >The man page states it's not standard and a google search for "strsep >not available" indicates it's not there on Solaris, for a starter. I'm >not sure but I suppose that means you should not use it.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.