In K&R Chapter 1.9, I\'ve been experimenting with the program provided below. Particularly, what would happen if I removed certain decelerations of functions.
So
Getline is actually defined in in the stdio.h
header
ssize_t getline(char **lineptr, size_t *n, FILE *stream);
hence deleting your own getline implementation will not throw an error. Instead, deleting your other function, will throw an error because no such function does exist in stdio.h but it's user-defined. By the way, in this case the problem you are facing can be simply resolved by deleting the function itself from the program.