Back to index

tetex-bin  3.0
Defines | Functions
home_terminfo.c File Reference
#include <curses.priv.h>
#include <tic.h>

Go to the source code of this file.

Defines

#define my_length   (strlen(home) + sizeof(PRIVATE_INFO))

Functions

 _nc_home_terminfo (void)

Define Documentation

#define my_length   (strlen(home) + sizeof(PRIVATE_INFO))

Definition at line 42 of file home_terminfo.c.


Function Documentation

Definition at line 47 of file home_terminfo.c.

{
#ifdef USE_HOME_TERMINFO
    char *home;
    static char *temp = 0;

    if (use_terminfo_vars()) {
       if (temp == 0) {
           if ((home = getenv("HOME")) != 0
              && my_length <= PATH_MAX) {
              temp = typeMalloc(char, my_length);
              if (temp == 0)
                  _nc_err_abort(MSG_NO_MEMORY);
              (void) sprintf(temp, PRIVATE_INFO, home);
           }
       }
       return temp;
    }
#endif
    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function: