I am trying to port an application from Windows to Linux. In Windows I have a
GetEnvironmentStrings() function in windows.h which provides me the environment variables and their values in the current process in
the form NAME=VALUE.
Is there an equivalent Linux function call for this? I need a C function.
How can this be achieved on Linux?
You can access the environment variables through the variable
extern char **environ;.Read more: