Callers should not each re-derive these; a caller that resolved the home * directory differently would classify the same path differently. */
| 566 | /* Callers should not each re-derive these; a caller that resolved the home |
| 567 | * directory differently would classify the same path differently. */ |
| 568 | const char *cbm_workspace_home_dir(void) { |
| 569 | const char *home = getenv("HOME"); |
| 570 | if (home && home[0]) { |
| 571 | return home; |
| 572 | } |
| 573 | home = getenv("USERPROFILE"); |
| 574 | return (home && home[0]) ? home : NULL; |
| 575 | } |
| 576 | |
| 577 | const char *cbm_workspace_cache_dir(void) { |
| 578 | return cbm_resolve_cache_dir(); |
no outgoing calls
no test coverage detected