[linux-help] Re: Problem with C program
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wednesday 05 June 2002 08:58 pm, bruce wrote:
> I am going through a C tutorial and trying to write a program to pull l=
ines
> from a file. The section below is pretty much taken from the tutorial =
and
> is the same in another tutorial. gcc doesn't seem to recognize the wo=
rd
> "FILE" in line 20. Does FILE require some other #include statement?
Yes, #include <stdio.h>
You also have a syntax error with the , *fopen() following.
if you say "man fopen" at the command prompt, it will show you all the in=
clude=20
statements that you need.
-- John
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
|
|