1: /*
   2:  * Type tty name
   3:  */
   4: 
   5: char    *ttyname();
   6: 
   7: main(argc, argv)
   8: char **argv;
   9: {
  10:     register char *p;
  11: 
  12:     p = ttyname(0);
  13:     if(argc==2 && !strcmp(argv[1], "-s"))
  14:         ;
  15:     else
  16:         printf("%s\n", (p? p: "not a tty"));
  17:     exit(p? 0: 1);
  18: }

Defined functions

main defined in line 7; never used
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 676
Valid CSS Valid XHTML 1.0 Strict