Back to index

tetex-bin  3.0
Functions
getenv_num.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

 _nc_getenv_num (const char *name)

Function Documentation

_nc_getenv_num ( const char *  name)

Definition at line 42 of file getenv_num.c.

{
    char *dst = 0;
    char *src = getenv(name);
    long value;

    if ((src == 0)
       || (value = strtol(src, &dst, 0)) < 0
       || (dst == src)
       || (*dst != '\0')
       || (int) value < value)
       value = -1;

    return (int) value;
}

Here is the call graph for this function:

Here is the caller graph for this function: