跳至主要內容

GetCommandLine


GetCommandLine

函数原型

void GetCommandLine(addr CmdLine);

功能

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

说明

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

示例

#bigram

void main()
{
    char s[256];

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