blob: 318009f52093a7c43cf676891e080c40ea2ea596 [file] [log] [blame]
Brad Bishopf3df6b42017-01-06 10:14:09 -05001/**
2 * Copyright © 2016 IBM Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Patrick Venture043d3232018-08-31 10:10:53 -070017#include "env.hpp"
18
Brad Bishopf3df6b42017-01-06 10:14:09 -050019#include <cstdlib>
Kun Yibd9bc002019-08-21 10:05:27 -070020#include <string>
Patrick Venture9331ab72018-01-29 09:48:47 -080021
Patrick Venture043d3232018-08-31 10:10:53 -070022namespace env
23{
Patrick Venture7a5285d2018-04-17 19:15:05 -070024
Kun Yibd9bc002019-08-21 10:05:27 -070025const char* EnvImpl::get(const char* key) const
Patrick Venturea24c8802018-04-17 19:38:06 -070026{
Kun Yibd9bc002019-08-21 10:05:27 -070027 return std::getenv(key);
Patrick Venturea24c8802018-04-17 19:38:06 -070028}
29
Kun Yibd9bc002019-08-21 10:05:27 -070030EnvImpl env_impl;
Matt Spinler82d507d2017-10-12 16:36:57 -050031
Patrick Venture043d3232018-08-31 10:10:53 -070032} // namespace env
Patrick Venture7a5285d2018-04-17 19:15:05 -070033
Brad Bishopf3df6b42017-01-06 10:14:09 -050034// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4