source:
trunk/sys/dietlibc/setlinebuf.c
@
176
| Last change on this file since 176 was 1, checked in by , 9 years ago | |
|---|---|
| File size: 312 bytes | |
| Rev | Line | |
|---|---|---|
| [1] | 1 | #include <stdio.h> |
| 2 | #include "dietwarning.h" | |
| 3 | #undef setlinebuf | |
| 4 | ||
| 5 | /* there is no previous prototype because it is a #define */ | |
| 6 | void setlinebuf(FILE* stream); | |
| 7 | ||
| 8 | void setlinebuf(FILE* stream) { | |
| 9 | setvbuf(stream,0,_IOLBF,BUFSIZ); | |
| 10 | } | |
| 11 | ||
| 12 | link_warning("setlinebuf","warning: you used setlinebuf without including <stdio.h>") |
Note: See TracBrowser
for help on using the repository browser.
