Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stddef.h>
- size_t get_count(const char *s)
- {
- int count = 0;
- while (*s) {
- switch (*s++) {
- case 'a':
- case 'e':
- case 'i':
- case 'o':
- case 'u':
- count++;
- }
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement