summaryrefslogtreecommitdiff
path: root/lib/readtokens.c
AgeCommit message (Collapse)Author
2004-03-21(readtoken): Don't leak 64 bytes when reading an empty input stream.Jim Meyering
2004-03-21Include <stdbool.h>.Jim Meyering
(readtoken): Use `size_t' rather than int/long. All callers adjusted. Use `bool' rather than `int' where appropriate. Use memset rather than an explicit loop. Use x2nrealloc rather than xrealloc. Allow the use of `\0' as a delimiter. (readtokens): Likewise.
2003-09-10Include readtokens.h first, to test interface.Jim Meyering
Include <stdlib.h>, <string.h> unconditionally. (init_tokenbuffer): Define with a prototype.
2003-06-07Remove unnecessary parentheses around malloc.Jim Meyering
2003-06-07Put `Free Software Foundation' in place of my nameJim Meyering
in the copyright comment.
2003-04-11Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.Jim Meyering
2003-01-14(readtoken): Cast character to 'unsigned char', not 'unsigned int'.Jim Meyering
2001-12-09(readtoken): Declare an index to be of type unsignedJim Meyering
to avoid a pedantic warning.
2001-11-17Remove explicit declarations of xmalloc and xrealloc,Jim Meyering
Instead, include "xalloc.h".
2001-11-17Include unlocked-io.h.Jim Meyering
1999-04-11(readtoken, readtokens): Protoize.Jim Meyering
1996-07-15indent cpp-directivesJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1996-02-24Unprotoize.Jim Meyering
1995-08-07Declare xmalloc, xrealloc rather than including xalloc.h.Jim Meyering
1995-01-27.Jim Meyering