| 381 | } |
| 382 | |
| 383 | int |
| 384 | resource_string_value(const char *name, int unit, const char *resname, |
| 385 | const char **result) |
| 386 | { |
| 387 | int error; |
| 388 | const char *str; |
| 389 | int line; |
| 390 | |
| 391 | line = 0; |
| 392 | error = resource_find(&line, NULL, name, &unit, resname, NULL, |
| 393 | NULL, NULL, NULL, NULL, NULL, &str); |
| 394 | if (error) |
| 395 | return error; |
| 396 | *result = str; |
| 397 | return 0; |
| 398 | } |
| 399 | |
| 400 | /* |
| 401 | * This is a bit nasty, but allows us to not modify the env strings. |
no test coverage detected