146082Sbostic /*- 2*61180Sbostic * Copyright (c) 1990, 1993 3*61180Sbostic * The Regents of the University of California. All rights reserved. 446082Sbostic * 546082Sbostic * This code is derived from software contributed to Berkeley by 646082Sbostic * Chris Torek. 746082Sbostic * 846082Sbostic * %sccs.include.redist.c% 922133Smckusick */ 1022133Smckusick 1126650Sdonn #if defined(LIBC_SCCS) && !defined(lint) 12*61180Sbostic static char sccsid[] = "@(#)fputs.c 8.1 (Berkeley) 06/04/93"; 1346082Sbostic #endif /* LIBC_SCCS and not lint */ 1422133Smckusick 1546082Sbostic #include <stdio.h> 1646082Sbostic #include <string.h> 1746082Sbostic #include "fvwrite.h" 182007Swnj 1946082Sbostic /* 2046082Sbostic * Write the given string to the given file. 2146082Sbostic */ fputs(s,fp)2246082Sbosticfputs(s, fp) 2346271Storek const char *s; 2446082Sbostic FILE *fp; 252007Swnj { 2646082Sbostic struct __suio uio; 2746082Sbostic struct __siov iov; 282007Swnj 2946271Storek iov.iov_base = (void *)s; 3046082Sbostic iov.iov_len = uio.uio_resid = strlen(s); 3146082Sbostic uio.uio_iov = &iov; 3246082Sbostic uio.uio_iovcnt = 1; 3346082Sbostic return (__sfvwrite(fp, &uio)); 342007Swnj } 35