dev
Download
34 lines 606 BGroffModified 2025-11-29 raw
12345678910111213141516171819202122232425262728293031323334
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH getenv 3 2025-11-29 "Tomo man-pages"
.SH NAME
getenv \- get an environment variable
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI getenv\ :\ func(name:\ Text\ ->\ Text?)
.fi
.SH DESCRIPTION
Gets an environment variable.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
name	Text	The name of the environment variable to get. 
.TE
.SH RETURN
If set, the environment variable's value, otherwise, `none`.

.SH EXAMPLES
.EX
assert getenv("TERM") == "xterm-256color"
assert getenv("not_a_variable") == none
.EE