/* エラー番号0〜40のエラーメッセージを得る */ #include <stdio.h> #include <string.h> int main(void) { int eno; for (eno = 0; eno <= 40; eno++) printf("%2d:%s", eno, strerror(eno)); return 0; }【実行結果例】
0:Error 0 1:Invalid function number 2:No such file or directory 3:Path not found 4:Too many open files 5:Permission denied 6:Bad file number 7:Memory arena trashed 8:Not enough memory 9:Invalid memory block address 10:Invalid environment 11:Invalid format 12:Invalid access code 13:Invalid data 14:Bad address 15:No such device 16:Attempted to remove current directory 17:Not same device 18:No more files 19:Invalid argument 20:Arg list too big 21:Exec format error 22:Cross-device link 23:Too many open files 24:No child processes 25:Inappropriate I/O control operation 26:Executable file in use 27:File too large 28:No space left on device 29:Illegal seek 30:Read-only file system 31:Too many links 32:Broken pipe 33:Math argument 34:Result too large 35:File already exists 36:Possible deadlock 37:Operation not permitted 38:No such process 39:Interrupted function call 40:Input/output error ※Borland C++ Compiler 5.5で実行した場合
▼戻る▼
「初心者のためのポイント学習C言語」 Copyright(c) 2000-2004 TOMOJI All Rights Reserved