Complete.Org: Mailing Lists: Archives: linux-help: June 2002:
[linux-help] Re: Problem with C program
Home

[linux-help] Re: Problem with C program

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx, bruce <bbales@xxxxxxx>
Subject: [linux-help] Re: Problem with C program
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: Wed, 5 Jun 2002 21:25:42 -0500
Reply-to: linux-help@xxxxxxxxx

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


[Prev in Thread] Current Thread [Next in Thread]