blob: a8de0856a2aa1a7404bbb5d34f711b66b5fcdf9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
* details. If they are missing then this copy is in violation of *
* the copyright conditions. */
/*
** lib_longname.c
**
** The routine longname().
**
*/
#include <string.h>
#include "curses.priv.h"
#include "terminfo.h"
char *
longname()
{
#ifndef MYTINFO
char *ptr;
#endif
T(("longname() called"));
#ifdef MYTINFO
return cur_term->name_long;
#else
for (ptr = ttytype + strlen(ttytype); ptr > ttytype; ptr--)
if (*ptr == '|')
return(ptr + 1);
return(ttytype);
#endif
}
|