mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 19:55:07 +01:00
more tests
This commit is contained in:
parent
043c960708
commit
1827bd19c9
12 changed files with 240 additions and 72 deletions
13
tests/c/getenv.c
Normal file
13
tests/c/getenv.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
char *env = getenv("PATH");
|
||||
if (!env) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
char *env2 = getenv("__some absolutely NONSENSE that no one would ever define please..");
|
||||
if (env2) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue