From: "J." <mailing-lists@xs4all.nl>
To: linux-c-programming@vger.kernel.org
Subject: Re: getline()
Date: Sun, 24 Aug 2003 18:01:34 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.21.0308241756590.25738-100000@hestia> (raw)
In-Reply-To: <20030824203653.A574@Imrashi.net.bd>
On Sun, 24 Aug 2003, Progga wrote:
>
> Is there any 'C' lib which contains the getline() function ? I have found
> a code similar to this:
>
> -------
>
> char *temp ;
> int n = 0 ;
> FILE *file_handle = NULL ;
>
> // [snipped]
>
> getline(&temp, &n, file_handle);
Aren't you searching for fgets() ?
char line[1024];
while((fgets(line, 1024, stdin)) != NULL)
printf("%s", line);
>
> Khoda Hafez
> Progga
JM
next prev parent reply other threads:[~2003-08-24 16:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-24 14:36 getline() Progga
2003-08-24 16:01 ` J. [this message]
2003-08-24 21:32 ` getline() Glynn Clements
2003-08-24 21:59 ` getline() Nico Schottelius
2003-08-25 6:24 ` getline() Mike Castle
2003-08-25 12:43 ` getline() Michael Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0308241756590.25738-100000@hestia \
--to=mailing-lists@xs4all.nl \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).