home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / Programme_zum_Heft / Programmieren / Kurztests / ACE / Prgs / Library / hello.b next >
Text File  |  1994-09-18  |  415b  |  19 lines

  1.  
  2. {* 
  3. ** A "hello world" program which uses only
  4. ** dos.library functions. Note that FPuts and
  5. ** FPutC are only found under Wb 2.x and up
  6. ** (xWrite could be used for 1.3 systems).
  7. **
  8. ** Must be run from a shell/CLI.
  9. *}
  10.  
  11. DECLARE FUNCTION xOutput&() LIBRARY dos
  12. DECLARE FUNCTION FPuts(handle&,buf$) LIBRARY dos
  13. DECLARE FUNCTION FPutC(handle&,ch&) LIBRARY dos
  14.  
  15. fh& = xOutput
  16.  
  17. FPuts(fh&,"hello world!")
  18. FPutC(fh&,10&)
  19.