1 // Copyright 2018 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 namespace devmgr { 8 9 // getenv_bool looks in the environment for |key|. If not found, it 10 // returns |default_value|. If found, it returns false if the found 11 // value matches "0", "off", or "false", otherwise it returns true. 12 bool getenv_bool(const char* key, bool default_value); 13 14 } // namespace devmgr 15