fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6. char buff[] = "\n";
  7. char *tok = strtok(buff, "\n");
  8. printf("%s\n", (tok ? "not-null" : "null"));
  9. if (*buff)
  10. printf("%d\n", (int)*buff);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
null
10