Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. int identyfikator(char* napis)
  2. {
  3. if ((napis[0] >= 'a' && napis[0] = < 'z') || (napis[0] >= 'A' && napis[0] = < 'Z') || (napis[0] == '_')
  4. {
  5. int i = 1;
  6. while (napis[i] != 0)
  7. {
  8. if ((napis[i] >= 'a' && napis[i] = < 'z') ||
  9. (napis[i] >= 'A' && napis[i] = < 'Z') ||
  10. (napis[i] >= '0' && napis[i] <= '9') ||
  11. (napis[i] == '_'))
  12. {
  13. return 0;
  14. }
  15. i += 1;
  16. }
  17. return 1;
  18. }
  19. else return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement