⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 environ.c

📁 minux的源代码,一个非常小的操作系统
💻 C
字号:
/*
 * environ.c - define the variable environ
 */
/* $Header: environ.c,v 1.1 90/09/27 13:39:50 eck Exp $ */
/*
 * This file defines the variable environ and initializes it with a magic
 * value.  The C run-time start-off routine tests whether the variable
 * environ is initialized with this value.  If it is not, it is assumed
 * that it is defined by the user.  Only two bytes are tested, since we
 * don't know the endian-ness and alignment restrictions of the machine.
 * This means that the low-order two-bytes should be equal to the
 * high-order two-bytes on machines with four-byte pointers.  In fact, all
 * the bytes in the pointer are the same, just in case.
 */

#if _EM_PSIZE==2
char **environ = (char **) 0x5353;
#else
char **environ = (char **) 0x53535353;
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -