File: mysetvbuf.c

package info (click to toggle)
leafnode 1.11.2.rel-1.0sarge0
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,284 kB
  • ctags: 572
  • sloc: ansic: 10,540; sh: 4,154; xml: 636; makefile: 266; perl: 84; sed: 4
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * mysetvbuf.c
 * (C) 2002 by Matthias Andree
 * LICENSE: GNU LESSER GENERAL PUBLIC LICENSE
 *
 * offer a consistent wrapper around broken setvbuf calls
 */

#include "config.h"
#include "leafnode.h"
#include <stdio.h>

int mysetvbuf(FILE *stream, char *buf, int mode , size_t size)
{
#ifdef SETVBUF_REVERSED
	return setvbuf(stream, mode, buf, size);
#else
	return setvbuf(stream, buf, mode, size);
#endif
}