filenmax.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 35 行
GML
35 行
.func FILENAME_MAX
#include <stdio.h>
#define FILENAME_MAX 123
.funcend
.desc begin
The &func macro is the size of an array of char big enough to hold a string
naming any file that the implementation expects to open;
If there is no practical file name length limit, &func is the recommended
size of such an array. As file name string contents must meet other
system-specific constraints, some strings of length &func may not work.
.np
&func typically sizes an array to hold a file name.
.desc end
.return begin
The &func macro returns a positive integer value.
.return end
.exmp begin
#include <stdio.h>
#include <string.h>
.exmp break
int main( int argc, char *argv[] )
{
if( argc ) {
char fname[FILENAME_MAX];
strcpy( fname, argv[0] );
puts( fname );
}
return( 0 );
}
.exmp end
.class ANSI
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?