Created
August 25, 2024 07:59
-
-
Save mortymacs/8af09dbe915cc878f453763423d9ea65 to your computer and use it in GitHub Desktop.
Get ENV in C
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 <stdlib.h> | |
int main() | |
{ | |
char *r = getenv("JAVA_HOME"); | |
printf("java home: %s\n", r); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment