Skip to content

GetCommandLine ​

函数原型 ​

c
void GetCommandLine(addr CmdLine);

功能 ​

取得当前运行程序的命令行字符串

说明 ​

命令行最长 256 个字符,需要为 CmdLine 预留足够空间

示例 ​

c
#bigram

void main()
{
    char s[256];

    GetCommandLine(s);
    printf(s);
    getchar();
}