[comp.unix.questions] Strtok def. needed

netnews@psc90.UUCP (Remote mail paths) (02/10/89)

Hi,
	I need a definition for strtok for BSD. Example of what I need
is 
strchr = rindex   and
strrchr= rrindex

Thanks,
	Deryk




     +--------------------+         +
  +--+-----------------+  |   +     |     +  UUCP:
  |  |  Deryk Marien   |  |   |-----|-----|  
  |  |                 |  |   |-----|-----|  dartvax!psc90!netnews
  |  | (psc90!netnews) |  |   |-----|-----|  uunet!unh!psc90!netnews
  |  |                 |  |   |     |     |
  |  +-----------------+--+   +     |     +  BITNET:  D_MARIEN@UNHH
  +-------------------+             +
==============================================================================

gwyn@smoke.BRL.MIL (Doug Gwyn ) (02/11/89)

In article <820@psc90.UUCP> netnews@psc90.UUCP (Remote mail paths) writes:
>I need a definition for strtok for BSD. Example of what I need is 
>strchr = rindex   and
>strrchr= rrindex

There is no such equivalent for strtok() in 4.2BSD.
I think 4.3BSD provides strtok().
There is at least one public domain implementation of the str*()
functions (by Henry Spencer) that you should be able to obtain from
a source archive site.