azure-sdk-for-cpp/samples/helpers/get-env
Anton Kolesnyk 0f62b3aa63
Add consumption-time value of __cplusplus to User-Agent (#5662)
* Add consumption-time value of __cplusplus to User-Agent

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-29 18:31:51 -07:00
..
inc Use standard syntax for MIT license (#4786) 2023-07-12 22:37:36 -07:00
src Use standard syntax for MIT license (#4786) 2023-07-12 22:37:36 -07:00
CMakeLists.txt Add consumption-time value of __cplusplus to User-Agent (#5662) 2024-07-29 18:31:51 -07:00
LICENSE Encapsulate getenv(), and make it work on UWP (#3275) 2022-01-29 08:22:33 +00:00
README.md Encapsulate getenv(), and make it work on UWP (#3275) 2022-01-29 08:22:33 +00:00

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.