4 ms·
You have a bug in strlen: for(cur=str; cur; ++cur); should be: for(cur=str; *cur; ++cur);
by mrb 16y ago
You have a bug in strlen:
for(cur=str; cur; ++cur);
should be:
for(cur=str; *cur; ++cur);
- Locke1689 16y agoRight you are. Wrote all those in the comment block. Fixed in an edit.