doc.txt get C environmental variables

_get-environment.ss_: get C environmental variables

Danny Yoo ( /

Index terms: _environ_, _environment_


_get-environment_ provides a single function GET-ENVIRONMENT, which
returns a list of byte strings.  For example:

    > (require (planet "" ("dyoo" "get-environment.plt")))
    > (require (lib ""))

    > (pretty-print (get-environment))
     ;; output omitted

This is really a quick-and-dirty and immediate application of the
foreign function interface.


> get-environment: -> (listof byte-string)
Returns a list of the environmental variables available from the
user environment.  Each byte string will be in the form #"key=value".