Parent Directory
|
Revision Log
consolidate all random system includes into headers.h
| 1 | /* |
| 2 | * is_env_off.c |
| 3 | * |
| 4 | * Util functions. |
| 5 | * |
| 6 | * Copyright 1999-2008 Gentoo Foundation |
| 7 | * Licensed under the GPL-2 |
| 8 | */ |
| 9 | |
| 10 | #include "headers.h" |
| 11 | #include "sbutil.h" |
| 12 | |
| 13 | bool is_env_off (const char *env) |
| 14 | { |
| 15 | if ((NULL != env) && (NULL != getenv(env)) && |
| 16 | ((0 == strncasecmp(getenv(env), "0", 1)) || |
| 17 | (0 == strncasecmp(getenv(env), "false", 5)) || |
| 18 | (0 == strncasecmp(getenv(env), "no", 2)))) |
| 19 | return TRUE; |
| 20 | |
| 21 | return FALSE; |
| 22 | } |
| Name | Value |
|---|---|
| svn:eol-style | native |
| svn:keywords | Author Date Id Revision |
| ViewVC Help | |
| Powered by ViewVC 1.1.13 |