home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / test / c / stdtest < prev    next >
Encoding:
Text File  |  1994-03-08  |  300 b   |  20 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. static char *h = "Hello World Hello World Hello World";
  6.  
  7. int
  8. main ()
  9. {
  10.   int l = strlen (h);
  11.  
  12.   setvbuf (stdout, 0, _IOFBF, 16);
  13.   fwrite (h, 1, l, stdout);
  14.   putchar ('\n');
  15.   fputs (h, stdout);
  16.   putchar ('\n');
  17.   puts (h);
  18.   return 0;
  19. }
  20.