Hi Oliver,

> Could we perhaps include a configure test and a fallback
> implementation such as the one below

I realise it's probably just the first one that came to hand, but it
whiffs a bit, and

>         if (buf) {
>             buf[len] = '\0';
>         }

I think that buf may only be len long on occasion when the NUL is added.
Oh, linebuf and linelen.  I renamed them for readability because all the
line* identifiers were silly when that's the central topic.

Given it's a common requirement, there's probably other getline-fallback
implementations, even given the licence requirements.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to