getline and _GNU_SORCE
Jakson Aquino
jaksonaquino at yahoo.com.br
Tue Aug 16 03:00:45 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Bernhard,
Em Monday 15 August 2005 08:19, Bernhard Reiter
escreveu:
> > Anyway, I will create a substitute getline() for
MinGW,
> > and CygWin which don't have GNU getline.
>
> If you do this anyway, why not use this routine by
default,
> this would avoid the _GNU_SOURCE extensions.
The substitute getline function wasn't allocating
memory dynamically.
But now it is. I included into data.c the function
getndelim2() from gnucoreutil/lib/getndelim2.c with
some changes and added the following commentary above
the function:
/* Adapted from GNU coretutils 5.2.1 getndelim2.c */
int getline(char **lineptr, int *linesize, FILE *F){
Can I use the function, and is the above commentary
enough? (I already commited the changes into cvs.)
Best,
Jakson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDATq9g2jPD2DL3GURAgudAKCsSzND0v6YNAwe1T0zigFtNfGaXACgyxcV
7g9lPC4fEmEKOSk9wjQNEzg=
=rqIC
-----END PGP SIGNATURE-----
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)