Description:
Look up an environment variable, returning 0 in insecure situations.

Files:
lib/secure_getenv.c
m4/secure_getenv.m4

Depends-on:
stdlib-h
extensions

configure.ac:
gl_FUNC_SECURE_GETENV
gl_CONDITIONAL([GL_COND_OBJ_SECURE_GETENV], [test $HAVE_SECURE_GETENV = 0])
AM_COND_IF([GL_COND_OBJ_SECURE_GETENV], [
  gl_PREREQ_SECURE_GETENV
])
gl_STDLIB_MODULE_INDICATOR([secure_getenv])

Makefile.am:
if GL_COND_OBJ_SECURE_GETENV
lib_SOURCES += secure_getenv.c
endif

Include:
<stdlib.h>

Link:

License:
LGPLv2+

Maintainer:
all
