azure-sdk-for-cpp/samples/helpers/get-env
Anton Kolesnyk a70be339e7
Audit string comparisons (#4197)
* Audit string comparisons

* Mac fix

* !isxdigit()

* Rewrite condition + comment

* <3

* Clang-format

* 255

* Allow uppercase

* stoi() radix

* ShouldEncode()

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-01-03 11:16:54 -08:00
..
inc
src Audit string comparisons (#4197) 2023-01-03 11:16:54 -08:00
CMakeLists.txt
LICENSE
README.md

Get Environment Variable for Samples

This is a helper library for samples that deals with getting environment variables.

Since getenv() may generate warnings on MSVC, and is not available on UWP, sample code gets cluttered with minor platform-specific nuances. This library hides all that, so that std::getenv() compiles and works the same on Linux, macOS, Win32, and UWP.