Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / misc / environ.c
1 /*
2  * environ.c - define the variable environ
3  */
4 /* $Id: environ.c,v 1.2 1994/06/24 11:45:07 ceriel Exp $ */
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 #if _EM_PSIZE==2
17 char **environ = (char **) 0x5353;
18 #else
19 char **environ = (char **) 0x53535353;
20 #endif