|
C Workshop
|
Functions | |
| void | SearchEnvironment (char *envp[], char *search) |
| Prints the environment variables starting with the given search term using the format: More... | |
| bool | StartsWith (char *string, char *search) |
| Checks if a string starts with the text of search. More... | |
| void SearchEnvironment | ( | char * | envp[], |
| char * | search | ||
| ) |
Prints the environment variables starting with the given search term using the format:
'Environment variable "PROCESSOR_ARCHITECTURE" has the value "AMD64".'
| envp | The environment variables. |
| search | The text to search for. |
| bool StartsWith | ( | char * | string, |
| char * | search | ||
| ) |
Checks if a string starts with the text of search.
| string | The string to check. |
| search | The text to search for. |