From 647dd96943387f1368dbd8c947a36274eae3545b Mon Sep 17 00:00:00 2001 From: sanjiyan Date: Thu, 1 Mar 2001 11:58:09 +0000 Subject: [PATCH] added a macro buffer_getline --- buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/buffer.h b/buffer.h index 7358565..7a801d2 100644 --- a/buffer.h +++ b/buffer.h @@ -35,6 +35,7 @@ extern int buffer_feed(buffer* b); extern int buffer_getc(buffer* b,char* x); extern int buffer_getn(buffer* b,char* x,unsigned int len); extern int buffer_get_token(buffer* b,char* x,unsigned int len,const char* charset,unsigned int setlen); +#define buffer_getline(b,x,len) buffer_get_token((b),(x),(len),"\n",1) extern char *buffer_peek(buffer* b); extern void buffer_seek(buffer* b,unsigned int len);