misc.c
来自「MDE 图形引擎」· C语言 代码 · 共 33 行
C
33 行
#include <stdlib.h>#include <string.h>#include "vacs.h"// This function get the value of VACSROOT environment varaiblechar* GetVacsRoot (){ char* root; root = getenv (ENV_VACSROOT); if (root) return root; else return DIR_FS_ROOT;}// This function get the absolute path name based on vacs root.// The result pathe name returned in pathnamechar* GetAbsolutePathName (const char* filename, char* pathname){ char* vacs_root; vacs_root = GetVacsRoot (); // "/vacs3/" strcpy (pathname, vacs_root); strcat (pathname, filename); // "/vacs3/bin/vacs" return pathname;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?