xref: /minix3/minix/lib/libc/sys/environ.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 /*
2  * environ.c - define the variable environ
3  */
4 /* $Header$ */
5 /*
6  * This file defines the variable environ and initializes it with a magic
7  * value.  The C run-time start-off routine tests whether the variable
8  * environ is initialized with this value.  If it is not, it is assumed
9  * that it is defined by the user.  Only two bytes are tested, since we
10  * don't know the endian-ness and alignment restrictions of the machine.
11  * This means that the low-order two-bytes should be equal to the
12  * high-order two-bytes on machines with four-byte pointers.  In fact, all
13  * the bytes in the pointer are the same, just in case.
14  */
15 
16 char **environ = (char **) 0x53535353;
17