MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_environment_variable_is_set

Function gjs_environment_variable_is_set

util/misc.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using mozilla::Err;
19
20bool gjs_environment_variable_is_set(const char* env_variable_name) {
21 const char* s = g_getenv(env_variable_name);
22 if (!s)
23 return false;
24
25 if (*s == '\0')
26 return false;
27
28 return true;
29}
30
31/**
32 * gjs_g_strv_concat:

Callers 2

gjs_warning_reporterFunction · 0.85
gjs_log_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected