3

Is the strtok function in standard C89?

Amandeep Grewal
  • 1,801
  • 3
  • 19
  • 30

2 Answers2

15

the man page says:

CONFORMING TO
       strtok()
              SVr4, POSIX.1-2001, 4.3BSD, C89, C99.

       strtok_r()
              POSIX.1-2001.

So I would say yes.

According to the C89 draft I have (the actual standard costs money), the appropriate section is:

4.11 STRING HANDLING <string.h>

     4.11.5.8 The strtok function

Community
  • 1
  • 1
John Ledbetter
  • 13,557
  • 1
  • 61
  • 80
1

There are lists enumerating functions and other identifiers by standard and header. See e.g. http://www.schweikhardt.net/identifiers.html

Jens
  • 69,818
  • 15
  • 125
  • 179