/* * This source code is released into the public domain. */ module; #include #include export module nihil.posix:getenv; import nihil.error; namespace nihil { /* * Find a variable by the given name in the environment by calling getenv_r(). */ export [[nodiscard]] auto getenv(std::string_view varname) -> std::expected; } // namespace nihil