home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / exec / rawputchar.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-09  |  1.3 KB  |  70 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: rawputchar.c,v 1.4 1997/01/01 03:46:14 ldp Exp $
  4.     $Log: rawputchar.c,v $
  5.     Revision 1.4  1997/01/01 03:46:14  ldp
  6.     Committed Amiga native (support) code
  7.  
  8.     Changed clib to proto
  9.  
  10.     Revision 1.3  1996/12/10 13:51:50  aros
  11.     Moved all #include's in the first column so makedepend can see it.
  12.  
  13.     Revision 1.2  1996/10/24 15:50:54  aros
  14.     Use the official AROS macros over the __AROS versions.
  15.  
  16.     Revision 1.1  1996/10/10 13:07:07  digulla
  17.     New function: RawPutChar()
  18.  
  19.  
  20.     Desc:
  21.     Lang: english
  22. */
  23. #include <unistd.h>
  24. #include <fcntl.h>
  25. #include "exec_intern.h"
  26. #include <exec/semaphores.h>
  27. #include <proto/exec.h>
  28.  
  29. /*****************************************************************************
  30.  
  31.     NAME */
  32.  
  33.     AROS_LH1(ULONG, RawPutChar,
  34.  
  35. /*  SYNOPSIS */
  36.     AROS_LHA(ULONG, character, D0),
  37.  
  38. /*  LOCATION */
  39.     struct ExecBase *, SysBase, 86, Exec)
  40.  
  41. /*  FUNCTION
  42.  
  43.     INPUTS
  44.  
  45.     RESULT
  46.  
  47.     NOTES
  48.  
  49.     EXAMPLE
  50.  
  51.     BUGS
  52.  
  53.     SEE ALSO
  54.  
  55.     INTERNALS
  56.  
  57.     HISTORY
  58.  
  59. *****************************************************************************/
  60. {
  61.     AROS_LIBFUNC_INIT
  62.     AROS_LIBBASE_EXT_DECL(struct ExecBase *,SysBase)
  63.  
  64.     char c=character;
  65.     write(STDERR_FILENO,&c,1);
  66.     return character;
  67.     AROS_LIBFUNC_EXIT
  68. } /* RawPutChar */
  69.  
  70.