help me with C languaje please, re: files.
Victor Balada Diaz
victor at bsdes.net
Sat Jun 4 18:18:02 GMT 2005
On Sat, Jun 04, 2005 at 02:11:01PM -0400, Pablo Mora wrote:
> Hi all,
>
> I am programming in C and I need to read a quantity of lines of a
> file. How can I know when a line arrives at his end? exists some
> special character? exists some file in C in the kernel of FreeBSD
> (4.11) where I can find somewhat similar?
>
> example: how read four lines of a file.
Take a look at fgets(3). The end of line character (in FreeBSD) is '\n'.
--
La prueba mas fehaciente de que existe vida inteligente en otros
planetas, es que no han intentado contactar con nosotros.
More information about the freebsd-hackers
mailing list