title: strtok and escape characters
body: <p>I'm working on a shell in C that uses strtok on the space char (' ') to create a list of arguments from the user input. For example, strtok 'ls foo bar' creates a char* with three elements: ls, foo, bar.</p>
  
  <p>My question is, how do I detect escape-space?</p>
  
  <p>For example, strtok 'ls foo\ bar' creates a char** with three elements: ls, foo\, bar. But it should create a char* with two elements: ls, foo bar</p>
  
  <p>How can I accomplish this? </p>