I have an obsession with unsafe example code:<p><pre><code> strcpy(str,"abc,def,ghi");
token = strtok(str,",");
printf("%s \n",token);
</code></pre>
Even if the author knows how many tokens are returned I would prefer a check for NULL here since a good fraction might not read further than this bad example.