Logo Search packages:      
Sourcecode: ldm version File versions  Download package

ldm-getenv-bool.c

#include <stdlib.h>
#include <glib-object.h>

/*
 * ldm_getenv_bool()
 *
 * Handle boolean environment types.
 */

int
ldm_getenv_bool(const char *name)
{
    char *env = getenv(name);

    if (env)
        if (*env == 'y' || *env == 't' || *env == 'T' || *env == 'Y')
            return TRUE;

    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index