TestingFrenzy

Ex6.3 C Lab

Nov 26th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. int string_is_empty(char s[]) {
  2.     if (s == NULL) {
  3.         return -1;
  4.     }
  5.  
  6.     if (s[0] == '\0') {
  7.         return 1;
  8.     }
  9.  
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment