146104Sbostic /*- 2*61180Sbostic * Copyright (c) 1990, 1993 3*61180Sbostic * The Regents of the University of California. All rights reserved. 446104Sbostic * 546104Sbostic * This code is derived from software contributed to Berkeley by 646104Sbostic * Chris Torek. 746104Sbostic * 846104Sbostic * %sccs.include.redist.c% 921409Sdist */ 1021409Sdist 1126660Sdonn #if defined(LIBC_SCCS) && !defined(lint) 12*61180Sbostic static char sccsid[] = "@(#)setbuf.c 8.1 (Berkeley) 06/04/93"; 1346104Sbostic #endif /* LIBC_SCCS and not lint */ 1421409Sdist 1546104Sbostic #include <stdio.h> 1646104Sbostic #include "local.h" 172032Swnj 1846104Sbostic void setbuf(fp,buf)1946104Sbosticsetbuf(fp, buf) 2046104Sbostic FILE *fp; 2146104Sbostic char *buf; 222032Swnj { 2346104Sbostic (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ); 242032Swnj } 25