1*46082Sbostic /*- 2*46082Sbostic * Copyright (c) 1990 The Regents of the University of California. 3*46082Sbostic * All rights reserved. 4*46082Sbostic * 5*46082Sbostic * This code is derived from software contributed to Berkeley by 6*46082Sbostic * Chris Torek. 7*46082Sbostic * 8*46082Sbostic * %sccs.include.redist.c% 922133Smckusick */ 1022133Smckusick 1126650Sdonn #if defined(LIBC_SCCS) && !defined(lint) 12*46082Sbostic static char sccsid[] = "@(#)fputs.c 5.3 (Berkeley) 01/20/91"; 13*46082Sbostic #endif /* LIBC_SCCS and not lint */ 1422133Smckusick 15*46082Sbostic #include <sys/stdc.h> 16*46082Sbostic #include <stdio.h> 17*46082Sbostic #include <string.h> 18*46082Sbostic #include "fvwrite.h" 192007Swnj 20*46082Sbostic /* 21*46082Sbostic * Write the given string to the given file. 22*46082Sbostic */ 23*46082Sbostic fputs(s, fp) 24*46082Sbostic char *s; 25*46082Sbostic FILE *fp; 262007Swnj { 27*46082Sbostic struct __suio uio; 28*46082Sbostic struct __siov iov; 292007Swnj 30*46082Sbostic iov.iov_base = s; 31*46082Sbostic iov.iov_len = uio.uio_resid = strlen(s); 32*46082Sbostic uio.uio_iov = &iov; 33*46082Sbostic uio.uio_iovcnt = 1; 34*46082Sbostic return (__sfvwrite(fp, &uio)); 352007Swnj } 36