Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Last active August 29, 2015 14:22
Show Gist options
  • Save shichao-an/618104c2fa3a6caba3b3 to your computer and use it in GitHub Desktop.
Save shichao-an/618104c2fa3a6caba3b3 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
char *getenv(const char *name);
/* Returns: pointer to value associated with name, NULL if not found */
int putenv(char *str);
/* Returns: 0 if OK, nonzero on error */
int setenv(const char *name, const char *value, int rewrite);
int unsetenv(const char *name);
/* Both return: 0 if OK, −1 on error */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment