home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / dos / fputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.1 KB  |  64 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: fputs.c,v 1.7 1997/01/27 00:36:20 ldp Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include <dos/dosextens.h>
  9. #include "dos_intern.h"
  10.  
  11. /*****************************************************************************
  12.  
  13.     NAME */
  14. #include <proto/dos.h>
  15.  
  16.     AROS_LH2(LONG, FPuts,
  17.  
  18. /*  SYNOPSIS */
  19.     AROS_LHA(BPTR,   file,   D1),
  20.     AROS_LHA(STRPTR, string, D2),
  21.  
  22. /*  LOCATION */
  23.  
  24.     struct DosLibrary *, DOSBase, 57, Dos)
  25.  
  26. /*  FUNCTION
  27.  
  28.     INPUTS
  29.     file   - Filehandle to write to.
  30.     string - String to write.
  31.  
  32.     RESULT
  33.     0 if all went well or EOF in case of an error.
  34.     IoErr() gives additional information in that case.
  35.  
  36.     NOTES
  37.  
  38.     EXAMPLE
  39.  
  40.     BUGS
  41.  
  42.     SEE ALSO
  43.     FGetC(), IoErr()
  44.  
  45.     INTERNALS
  46.  
  47.     HISTORY
  48.     29-10-95    digulla automatically created from
  49.                 dos_lib.fd and clib/dos_protos.h
  50.  
  51. *****************************************************************************/
  52. {
  53.     AROS_LIBFUNC_INIT
  54.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  55.  
  56.     while(*string)
  57.     if(FPutC(file,*string++)<0)
  58.         return EOF;
  59.  
  60.     return 0;
  61.  
  62.     AROS_LIBFUNC_EXIT
  63. } /* FPuts */
  64.