Debian Codegraph @

src/util/iobuftest.c

raw symbols SCIP
1 /* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */
2 /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */
3
4 #include <stdio.h>
5 #include "../machine.h"
6
7 /*
8 * On some machines (Solaris 2), the FILE structure stores the
9 * buffer passed by setbuf() with an offset
10 */
11
12 char buf[BUFSIZ];
13
14 main()
15 {
16 setbuf(stdin, buf);
17 printf("%d\n", (int)buf - (int)stdin->_IO_buf_base);
18 }