The getenv() function is a Linux system call function.
It is designed to know what is the name of an environment variable.
The main use is for the "TERM" variable. Let's see an example of the getenv() function:
/* ** Made by BadproG.com */ #include <stdio.h> int main() { const char *name; name = "TERM"; printf("My terminal is %s.\n", getenv(name)); return (0); }
© Badprog - I want to change the world. And I will.
Add new comment