Created
April 20, 2018 19:46
-
-
Save oatmealraisin/b952ab56ced2682fc2901fff5a1586c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
char *foo() { | |
char *result = getenv("HOME"); | |
return strcat(result, "/foo"); | |
} | |
int main() { | |
printf("%s\n", foo()); | |
printf("%s\n", foo()); | |
printf("%s\n", foo()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment