The problem is that getline() is a standard library function. (defined in stdio.h) Your function has the same name and is thus clashing with it.
The solution is to simply change the name.
The problem is that getline() is a standard library function. (defined in stdio.h) Your function has the same name and is thus clashing with it.
The solution is to simply change the name.