File: buffer_putflush.c

package info (click to toggle)
libowfat 0.28-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,068 kB
  • sloc: ansic: 12,863; makefile: 16
file content (7 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
#include "buffer.h"

int buffer_putflush(buffer* b,const char* x,size_t len) {
  if (buffer_put(b,x,len)<0) return -1;
  if (buffer_flush(b)<0) return -1;
  return 0;
}