mapenv.txt
来自「dos 1.0 其中包含quick basic源代码、内存管理himem emm」· 文本 代码 · 共 42 行
TXT
42 行
SUMMARY mapenv
#include <tools.h>
void mapenv(pstrSrc, pstrDest)
char *pstrSrc;
char *pstrDest;
DESCRIPTION
mapenv will scan the source string for $(name) and attempt to replace it
with text from the environment.
RETURN VALUE
none
IMPLEMENTATION
SEE ALSO
NOTE
EXAMPLE
#include <tools.h>
char strSrc[] = "Me:$(user) and my $(shadow)";
main(c, argv)
int c;
char *argv[];
{
char strDest[256];
mapenv(strSrc, strDest);
printf("%s\n%s\n", strSrc, strDest);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?