# 2.11BSD#431 - /usr/src/usr.bin/tty.c

##### Functions

    main              X

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

#### Defined functions

main defined in line 8; never used

#### Defined variables

sccsid defined in line 1; never used

Last modified: 1987-02-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 891 |