]> ncurses.scripts.mit.edu Git - ncurses.git/blob - ncurses/lib_longname.c
ncurses 4.1
[ncurses.git] / ncurses / lib_longname.c
1
2 /***************************************************************************
3 *                            COPYRIGHT NOTICE                              *
4 ****************************************************************************
5 *                ncurses is copyright (C) 1992-1995                        *
6 *                          Zeyd M. Ben-Halim                               *
7 *                          zmbenhal@netcom.com                             *
8 *                          Eric S. Raymond                                 *
9 *                          esr@snark.thyrsus.com                           *
10 *                                                                          *
11 *        Permission is hereby granted to reproduce and distribute ncurses  *
12 *        by any means and for any fee, whether alone or as part of a       *
13 *        larger distribution, in source or in binary form, PROVIDED        *
14 *        this notice is included with any such distribution, and is not    *
15 *        removed from any of its header files. Mention of ncurses in any   *
16 *        applications linked with it is highly appreciated.                *
17 *                                                                          *
18 *        ncurses comes AS IS with no warranty, implied or expressed.       *
19 *                                                                          *
20 ***************************************************************************/
21
22
23 /*
24 **      lib_longname.c
25 **
26 **      The routine longname().
27 **
28 */
29
30 #include <curses.priv.h>
31
32 MODULE_ID("$Id: lib_longname.c,v 1.5 1996/12/21 14:24:06 tom Exp $")
33
34 char *
35 longname(void)
36 {
37 char    *ptr;
38
39         T(("longname() called"));
40
41         for (ptr = ttytype + strlen(ttytype); ptr > ttytype; ptr--)
42                 if (*ptr == '|')
43                         return(ptr + 1);
44
45     return(ttytype);
46 }