This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: No getline() in stdio.h?
- From: Eric Blake <ebb9 at byu dot net>
- To: George Morgan <george_morgan at spamcop dot net>
- Cc: cygwin at cygwin dot com
- Date: Thu, 07 Jul 2005 06:00:16 -0600
- Subject: Re: No getline() in stdio.h?
- References: <20050707041233.7k8444kw00cc8w48@webmail.spamcop.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to George Morgan on 7/7/2005 2:12 AM:
> Ok, I was reading about the virtues of using getline and then looked in cygwin's
> stdio.h and it is not there! Did it get removed? Yeah, I found the __getline
> but when I changed my C code to use that the linker does not find it. This is
> with cygwin DLL version 1.5.18 and gcc 3.4.4. Maybe I need to use an older
> compiler?
An alternative is to investigate using the gnulib module in your code.
gnulib is currently designed for CVS use only (so there is no cygwin
distribution), but projects like coreutils use gnulib getline() and other
modules to make up for non-standard functions that are missing in various
platform libraries. http://www.gnu.org/software/gnulib/
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCzRlQ84KuGfSFAYARAk5bAKCaN1Goo+luR4zh9ejKTHtruv4S+wCgtaDz
WUsIG1mCDoFMMlbU31cDpnc=
=etoO
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/