tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

setbuffer(3) size argument type int/size_t ?


There seems to be an inconsistency with setbuffer(3) size argument.

The man page states that its type is size_t but the implementation
declare an int type ...

.Ft void
.Fn setbuffer "FILE *stream" "char *buf" "size_t size"

void     setbuffer(FILE *, char *, int);

The size_t type looks more correct to handle a buffer size. Ok to
convert the code ?

Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Home | Main Index | Thread Index | Old Index