getline and _GNU_SORCE

Bernhard Reiter bernhard at intevation.de
Mon Aug 15 13:19:30 CEST 2005


Am 14. Aug 2005 um 09:11:45 schrieb Jakson Aquino:
> I'm trying to avoid the use of the option "rlen". 

Good idea, it is always best to have this dynamically.

> The buffer size for reading lines will be dynamically 
> determined by GNU extension to libc, the function 
> getline. However, I have to add #define _GNU_SOURCE 
> before #include <stdio.h>. Will this cause any problem?

In general I would hope to conform to C-standards
for a simple application like statist.

> 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.

	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/20050815/195adac4/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)