R
Size: a a a
R
W
W
D
W
D
W
W
R
W
R
char* ptr_home = std::getenv("HOME");
if(ptr_home)
path = std::string_view{ptr_home} / ".appname";
if(std::getenv("HOME"))
path = std::string_view{ptr_home} / ".appname";W
W
W
W
static inline constexpr std::string_view home_env_var{"HOME"};
if(char* home_ptr = std::getenv(home_env_var.data())){
/*...*/
}W
R
static inline constexpr std::string_view home_env_var{"HOME"};
if(char* home_ptr = std::getenv(home_env_var.data())){
/*...*/
}W