Why do I get a “conflicting types for getline” error when compiling the longest line example in chapter 1 of K&R2?

后端 未结 7 444
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 17:09

Here is a program I\'m trying to run straight from section 1.9 of \"The C Programming Language\".

#include 
#define MAXLINE 1000

int getline(         


        
相关标签:
7条回答
  • 2020-12-04 17:33

    getline is now a POSIX function declared in stdio.h

    Rename you getline function to another name and it will compile.

    0 讨论(0)
提交回复
热议问题