home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOS_RKRM.lzx / pOS_RKRM / pExec / XPrint.c < prev   
Encoding:
C/C++ Source or Header  |  1997-03-18  |  1.8 KB  |  68 lines

  1.  
  2. /*******************************************************************
  3.  $CRT 01 Feb 1997 : hb
  4.  
  5.  $AUT Holger Burkarth
  6.  $DAT >>XPrint.c<<   01 Feb 1997    10:17:30 - (C) ProDAD
  7. *******************************************************************/
  8.  
  9. //##ex mcpp:cppc -gs -o pos:pos/Ex/XPrint p:pLib/StartCode.o p:/pOS_RKRM/pExec/XPrint.c -l pOS -l pOSStub
  10.  
  11. /***********************************************************
  12.   pOS programing example - Copyright (C) 1995-97 proDAD
  13.  
  14.   This code was written as an easy to understand example,
  15.   how to program pOS features. It is provided 'as-is',
  16.   without any express or implied warranty.
  17.  
  18.   Permission is hereby granted to use, copy and modify
  19.   this source code for any purpose, without fee, subject
  20.   to the following conditions:
  21.  
  22.     (1) This notice may not be removed or altered from any
  23.         source distribution.
  24.  
  25.     (2) Altered source versions must be plainly marked as
  26.         such, and must not be misrepresented as being
  27.         the original source code.
  28.  
  29.     (3) If only executable code is distributed, then the
  30.         accompanying documentation have to state that
  31.         "this software is based in part on examples of
  32.         the pOS developer packet".
  33.  
  34.     (4) Permission for use of this code is granted only
  35.         if the user accepts full responsibility for any
  36.         undesirable consequences. proDAD accept NO LIABILITY
  37.         for damages of any kind.
  38.  
  39.   ©proDAD
  40. ***********************************************************/
  41.  
  42. /*\
  43. *** Example:
  44. ***
  45. \*/
  46.  
  47.  
  48. #define __COMPUTER_AMIGA 1
  49. #define NOMYDEBUG
  50.  
  51. #include "p:proto/pOS.h"
  52.  
  53. /*----------------------------------
  54. -----------------------------------*/
  55. #ifdef __cplusplus
  56. extern "C"
  57. #endif
  58.  
  59. VOID main()
  60. {
  61.   pOS_TimeDelay(0,100000);
  62.  
  63. /*\
  64. *** Print to serial
  65. \*/
  66.   pOS_KPrintf("Hello world\n");
  67. }
  68.