Swift equivalent of C getenv function?

A simple question, but I am not able to find the answer myself.

Note - I tried ProcessInfo.environment but it does not include system env vars.

It depends. You should specify what you are looking for and which platform you are targeting.

Swift equivalent of C getenv function?
 
 
Q