home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d4xx / d430 / smartfields.lha / SmartFields / Functions / con_write.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-11  |  484 b   |  23 lines

  1. /***************************************
  2. *  CONsole WRITE v1.11
  3. *  © Copyright Timm Martin
  4. *  All Rights Reserved
  5. ****************************************/
  6.  
  7. #include <exec/io.h>
  8. #include <exec/types.h>
  9. #include <console/functions.h>
  10.  
  11. void con_write( wreq, string, length )
  12.   struct IOStdReq *wreq;
  13.   UBYTE *string;
  14.   int    length;
  15. {
  16.   long DoIO();  /* exec.library */
  17.  
  18.   wreq->io_Command = CMD_WRITE;
  19.   wreq->io_Data    = (APTR)string;
  20.   wreq->io_Length  = length;
  21.   DoIO( wreq );
  22. }
  23.