Guest User

Untitled

a guest
Mar 24th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. bool thereIs(char c, char *a)
  2. {
  3.     if (!a)
  4.         return false;
  5.     while (*a != '\0') {
  6.         if (c == *a)
  7.             return true;
  8.         ++a;
  9.     }
  10.     return false;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment