1#include <assert.h>2#include <stdio.h>3#include <stdlib.h>4#include <string.h>56/*7output:8testing9done10end:11*/1213int putenv(char *);1415int16main(void)17{18 char *s;1920 puts("testing");21 s = getenv("THIS_CANNOT_BE_A_ENV_CAR");22 assert(s == NULL);2324#if defined(__unix__) || defined(__SCC_PUTENV__)25 putenv("AVAR=avalue");26 s = getenv("AVAR");27 assert(strcmp(s, "avalue") == 0);28#endif29 puts("done");3031 return 0;32}