Browse Source

add buffer_putnlflush

master
Felix von Leitner 20 years ago
parent
commit
045c34e8e6
  1. 1
      CHANGES
  2. 1
      buffer.h
  3. 7
      buffer/buffer_putnlflush.c

1
CHANGES

@ -2,6 +2,7 @@
fixed several bugs in test/uudecode.c
add uninstall target
add uint16_read API like the uint32_read one
add buffer_putnlflush
0.12:
add textcode api for uuencode/uudecode, base64, quoted printable,

1
buffer.h

@ -26,6 +26,7 @@ extern int buffer_putsalign(buffer* b,const char* x);
extern int buffer_putsflush(buffer* b,const char* x);
extern int buffer_putspace(buffer* b);
extern int buffer_putnlflush(buffer* b); /* put \n and flush */
#define buffer_PUTC(s,c) \
( ((s)->a != (s)->p) \

7
buffer/buffer_putnlflush.c

@ -0,0 +1,7 @@
#include "str.h"
#include "buffer.h"
int buffer_putspace(buffer* b) {
static char nl='\n';
return buffer_putflush(b,&nl,1);
}
Loading…
Cancel
Save