T
Toni Uusitalo
those said:in comp.lang.c i read:
i elided most of the code -- sometimes this is a mistake, though i hope not
-- only the bits with nits remain.
int makes some sense, but i happen to prefer size_t as there is no meaning
in a negative length or offset in this code.
char *rfg(FILE * f, size_t l) {
also, this is now a very short name to have with external linkage. i would
probably change to internal linkage, or rename it rfgets_r -- heh, perhaps
both.
I would change its name to wof (write-only function)
(http://en.wikipedia.org/wiki/Write-only_language)
;-)
Well maybe I'm just jealous cos I couldn't come up with something as
clever as this function ;-)
with respect,
Toni Uusitalo