title: What's the difference between strtok_r and strtok_s in C?
body: <p>I'm trying to use this function in a C program that needs to be able to compile in Linux and Windows. At first I tried using strtok_r, but then when I compiled on windows, it complained about the function not existing and said it would assume it's an extern function, but then failed. I then used strtok_s and it compiled! Then I tried on Linux but now it's complaining that there is an "undefined reference to 'strtok_s'". </p>
  
  <p>Is one a windows only function and the other a linux function??? What can I do to make it compile on both?</p>