You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
350 B

// This file displays the GDMSESSION environment variable
// Try with others if you want, you know how to now
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
int main( int argc, char **argv, char ** envp)
{
while(*envp != NULL)
{
if(strstr(*envp, "GDMSESSION") != NULL)
printf("%s\n", *envp);
*envp++;
}
}