diff options
| author | Barry Warsaw <barry@python.org> | 2017-10-06 13:53:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-06 13:53:48 (GMT) |
| commit | a51b90a31399a8826e590da8e327bd65dd29e5a4 (patch) | |
| tree | 570d6b505cec9dc6d9cc8747357b57edd9d6476e | |
| parent | 731e18901484c75b60167a06a0ba0719a6d4827d (diff) | |
| download | cpython-a51b90a31399a8826e590da8e327bd65dd29e5a4.zip cpython-a51b90a31399a8826e590da8e327bd65dd29e5a4.tar.gz cpython-a51b90a31399a8826e590da8e327bd65dd29e5a4.tar.bz2 | |
Document Py_GETENV() (#3890)
| -rw-r--r-- | Doc/c-api/intro.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 4942b1a..e654c4c 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -132,6 +132,11 @@ complete listing. Argument must be a character or an integer in the range [-128, 127] or [0, 255]. This macro returns ``c`` cast to an ``unsigned char``. +.. c:macro:: Py_GETENV(s) + + Like ``getenv(s)``, but returns *NULL* if :option:`-E` was passed on the + command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set). + .. _api-objects: |
