Advertisement
Dev-san

Untitled

May 8th, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. bool legitStrcmp(char* a, char* b)
  2. {
  3.     if (strlen(a) != strlen(b))
  4.         return false;
  5.    
  6.     int i = 0;
  7.     while (i < strlen(a))
  8.     {
  9.         if (a[i] != b[i])
  10.             return false;
  11.         i++;
  12.     }
  13.     return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement