ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../stdlib/tst-putenvmod.c

18 lines
277 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void
__attribute ((constructor))
init (void)
{
puts ("init DSO");
static char str[] = "SOMETHING_NOBODY_USES=something_else";
if (putenv (str) != 0)
{
puts ("putenv failed");
_exit (1);
}
}