Why __getline and not just getline?

Brian Dessent brian@dessent.net
Fri Jul 8 01:53:00 GMT 2005


Corinna Vinschen wrote:

> can anybody tell me why the getline and getdelim functions are
> double-underscored (__getline, __getdelim) and not just exported
> as getline and getdelim as in glibc?  Would it hurt to change this?

Perhaps the intent was for there to be a "#define getline __getline" (as
in libc/sys/linux/sys/stdio.h) only on certain platforms, so that it's
only selectively available as getline() on those platforms?

Brian



More information about the Newlib mailing list