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

  1. /***************************************
  2. *  CONsole PUT STRING v1.01
  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_put_string( wreq, string )
  12.   struct IOStdReq *wreq;
  13.   UBYTE *string;
  14. {
  15.   long DoIO();  /* exec.library */
  16.  
  17.   wreq->io_Command = CMD_WRITE;
  18.   wreq->io_Data    = (APTR)string;
  19.   wreq->io_Length  = -1;  /* end when encounter NULL */
  20.   DoIO( wreq );
  21. }
  22.