* Test if an environment variable is defined. */
| 505 | * Test if an environment variable is defined. |
| 506 | */ |
| 507 | int |
| 508 | testenv(const char *name) |
| 509 | { |
| 510 | char *cp; |
| 511 | |
| 512 | cp = kenv_acquire(name); |
| 513 | kenv_release(cp); |
| 514 | |
| 515 | if (cp != NULL) |
| 516 | return (1); |
| 517 | return (0); |
| 518 | } |
| 519 | |
| 520 | /* |
| 521 | * Set an environment variable in the MD-static environment. This cannot |
no test coverage detected