// Umgebungsvariable "LOGONSERVER" ermitteln #include <stdio.h> #include <stdlib.h> //------------------------------------------------------------------ int main(void) { char* env; env = getenv("LOGONSERVER"); if ( env ) { printf("variable: %s\n",env); } else { printf("getenv() failed\n"); exit(1); } return 0; }