Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
check string in c
1
Name:
Anonymous
2009-05-24 9:14
what the fast way to check that string contain only characters within some set like "a-z0-9"?
76
Name:
Anonymous
2009-05-25 16:05
>>74
Thanks Anonymous.
Here's the next iteration. I'm not sure about the return value though, it might need one more !.
is_inset(char*s){while(*s&(*s<'0'|*s>'9')&(*s<'a'|*s>'z'));return!*s;}
Next up is removing the extra set of parentheses.
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List