bool mystrcmp(const char *a, const char *b) { while (*a == *b) { if (*a++ == '\0') return true; b++; } return *a == *b; }
5 月
04
2012
04
2012
string compare strcmp implementation
尚無留言 »
RSS feed for comments on this post. TrackBack URL
bool mystrcmp(const char *a, const char *b) { while (*a == *b) { if (*a++ == '\0') return true; b++; } return *a == *b; }
RSS feed for comments on this post. TrackBack URL
Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com