mirror of /home/gitosis/repositories/libowfat.git
add buffer_putnlflush
parent
fc731fac13
commit
045c34e8e6
1
CHANGES
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
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) \
|
||||
|
|
|
@ -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…
Reference in New Issue