Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <cs50.h>
- #include <string.h>
- int main(void)
- {
- printf("What are the names of your pets? (Enter them by separating with commas)");
- string petNames = GetString();
- printf("%s\n", strchr(petNames, ','));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement