Expand|Select|Wrap|Line Numbers
- main(){
- getline(...
- copystrings(...
- }
- void copystrings(char a[], char b[]) {
- ...
- }
- int getline(char arr[], int limit) {
- ...
- }
When I compile this using cc on Fedora linux, the warnings I get are these
Expand|Select|Wrap|Line Numbers
- warning: conflicting types for ‘copystrings’
- note: previous implicit declaration of ‘copystrings’ was here
My question is, why don't I get a similar warning for getline as well?