Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char name[27];
- int namlen;
- printf("Enter a series of names and type 'end' to stop:\n");
- do
- {
- namelen = strlen(name);
- if(name[namelen-1] == '\n')
- name[namelen-1] = '\0');
- //How and where should this be added? --> while !strchr( name , '\n') { fgets(name,26,stdin); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement