📄 jstrerro.gml
字号:
.func jstrerror
#include <jstring.h>
unsigned char *jstrerror( int errnum );
.ixfunc2 '&Jstring' &func
.ixfunc2 '&Errs' &func
.funcend
.desc begin
The &func function maps the error number contained in
.arg errnum
to a Kanji error message.
.desc end
.return begin
The &func function returns a pointer to the Kanji error message.
The array containing the error string should not be modified by the
program.
This array may be overwritten by a subsequent call to the &func
function.
.return end
.see begin
.seelist jstrerror jperror strerror perror
.see end
.exmp begin
#include <stdio.h>
#include <jstring.h>
#include <errno.h>
void main()
{
FILE *fp;
.exmp break
fp = fopen( "file.nam", "r" );
if( fp == NULL ) {
printf( "Unable to open file: %s\n",
jstrerror( errno ) );
}
}
.exmp end
.class WATCOM
.system
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -