Back to index

glibc  2.9
tst-putenvmod.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <stdlib.h>
00003 #include <unistd.h>
00004 
00005 void
00006 __attribute ((constructor))
00007 init (void)
00008 {
00009   puts ("init DSO");
00010 
00011   static char str[] = "SOMETHING_NOBODY_USES=something_else";
00012   if (putenv (str) != 0)
00013     {
00014       puts ("putenv failed");
00015       _exit (1);
00016     }
00017 }