Este é um blog onde anoto dicas técnicas de informática e computação.
This is a blog where I write down technical tips on computing.
Be aware that some resources used in this blog may use cookies to collect information used by Ads and Google Analytics. I do not monetize from this website, neither require or use personal information.
Friday, February 26, 2010
Pegando uma variavel de ambiente em C
#include #include
int main(void) { char *myenvvar=getenv("EDITOR"); printf("The editor environment variable is set to %s\n",myenvvar); }
No comments:
Post a Comment