lib/linebuffer.c


Log

Author Commit Date CI Message
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Paul Eggert 917752ad 2004-10-04T20:17:39 Remove dependencies on unlocked-io.
Jim Meyering 3aa5630a 2003-10-31T13:53:15 Include <string.h> for declaration of memset.
Paul Eggert 0c0be7e5 2003-10-30T00:36:03 Simplify the code by using new xalloc.h features.
Paul Eggert b5f4d75d 2003-09-24T20:56:42 (freebuffer): Don't free the argument, just the buffer associated with the argument. Bug reported by Simon Josefsson.
Paul Eggert 73bb09bd 2003-09-16T20:00:38 linebuffer.c (readlinebuffer): Return NULL immediately upon input error.
Paul Eggert a9b64ea6 2003-09-09T21:51:00 Include <stdlib.h>. (free): Remove decl.
Paul Eggert 7987825e 2003-01-13T07:09:16 (readlinebuffer): Renamed from readline. All uses changed.
Jim Meyering 9d2aa9f8 2001-12-10T00:13:36 Remove explicit declarations of xmalloc and xrealloc, Instead, include "xalloc.h". (initbuffer): Don't cast xmalloc return value to char*. (readline): Reword comment. Don't cast xrealloc return value to char* Return NULL, not 0.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering 89f2b489 2000-08-07T15:48:18 back out Copyright date changes for files with no changes year
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 32027663 1999-11-04T23:12:42 (readline): Do not leave room for an extra byte after the newline; it's no longer needed.
Jim Meyering d59ff2bd 1999-07-30T19:29:27 Include <sys/types.h> now that linebuffer.h uses size_t. This is required on at least SunOS4. From Kaveh Ghazi.
Jim Meyering 9d80c0d4 1999-07-04T10:31:01 (readline): Leave room for an extra byte after the newline; comm needs this for memcoll.
Jim Meyering ade79def 1999-07-04T10:06:42 (readline): Append trailing newline to line.
Jim Meyering 04e03d50 1998-08-03T03:03:11 Ansideclify.
Jim Meyering 069ca377 1998-08-03T03:02:20 *** empty log message ***
Jim Meyering 13192579 1998-08-03T03:02:04 (readline): Return zero upon error as well as upon end of file. From James Youngman.
Jim Meyering 87e2683e 1992-11-08T02:50:44 Initial revision