Implement configuration variables

This commit is contained in:
mkrsym1
2023-06-08 22:33:37 +03:00
parent 8662c84a0a
commit f8954d0857
4 changed files with 30 additions and 1 deletions

View File

@ -28,3 +28,8 @@ uint32_t utils_file_crc32c(const char *filePath) {
return crc;
}
char utils_env_enabled(const char *env) {
char *envText = getenv(env);
return envText && strcmp(envText, "") != 0;
}