strtok_r or strtok_s

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • randyyork
    New Member
    • Apr 2008
    • 1

    strtok_r or strtok_s

    OK,

    I have used the strtok_r for the re-entrant posix capability, I just noticed that VC 2008 has a strtok_s what is this? It works the same but does not mention the reason for the change.

    Is it a windows strtok_r equivalent?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    strtok_s is a secure version of strtok that does not overrun buffers.

    It is Microsoft specific.
    Last edited by weaknessforcats; Apr 1 '08, 04:17 PM. Reason: I failed to answer the original question correctly.

    Comment

    Working...