home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / Blitz / OSProject / p8 / hello.c < prev    next >
Text File  |  2007-09-19  |  647b  |  26 lines

  1. code hello
  2.  
  3.   -----------------------------------
  4.   ----                           ----
  5.   ----    The "hello" Program    ----
  6.   ----                           ----
  7.   -----------------------------------
  8.  
  9. -----------------------------  main  ---------------------------------
  10.   const stdin  = 0
  11.         stdout = 1
  12.         message = "Hello, world!\n"
  13.  
  14.   function main ()
  15.     --
  16.     -- This is the prototypical user-level program.  It can be executed as
  17.     -- a command by typing the name of the executable at the shell prompt.
  18.     --
  19.       var ignore: int
  20.  
  21.       ignore = Sys_Write (stdout, &message[0], message arraySize)
  22.  
  23.     endFunction
  24.  
  25. endCode
  26.