1#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4
5void
6__attribute ((constructor))
7init (void)
8{
9 puts (s: "init DSO");
10
11 static char str[] = "SOMETHING_NOBODY_USES=something_else";
12 if (putenv (string: str) != 0)
13 {
14 puts (s: "putenv failed");
15 _exit (1);
16 }
17}
18

source code of glibc/stdlib/tst-putenvmod.c