getline and _GNU_SORCE
Bernhard Reiter
bernhard at intevation.de
Tue Aug 16 16:45:22 CEST 2005
Hi Jakson,
Am 15. Aug 2005 um 22:00:45 schrieb Jakson Aquino:
> Em Monday 15 August 2005 08:19, Bernhard Reiter
> 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,
yes, the licences seem to be compatible.
> and is the above commentary
> enough? (I already commited the changes into cvs.)
Yes, but you might want to add it to the copyright statement of data.c
and the readme, so it is properly documented.
Best,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050816/bbfd8791/attachment.bin
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)