File: buffer_putflush.c

package info (click to toggle)
libowfat 0.22-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,148 kB
  • ctags: 976
  • sloc: ansic: 10,424; makefile: 42
file content (7 lines) | stat: -rw-r--r-- 189 bytes parent folder | download
1
2
3
4
5
6
7
#include "buffer.h"

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