home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / test / c / unamtest < prev    next >
Encoding:
Text File  |  1994-09-11  |  312 b   |  21 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #include "sys/unix.h"
  5.  
  6. int
  7. main ()
  8. {
  9.   char b[256];
  10.  
  11.   while (fgets (b, 256, stdin))
  12.     {
  13.     b[strlen(b)-1] = '\0';
  14.     for(__uname_control = 0; __uname_control <=6; __uname_control +=2)
  15.         {
  16.         printf("-> %s\n", __uname (b, 0));
  17.         }
  18.     }
  19.   return 0;
  20. }
  21.