Strerror returns the system error message as a string.
strerror将系统错误消息作为字符串返回。
Additional calls to strerror will overwrite the contents of that buffer.
对strerror的其他调用将会覆盖该缓冲区的内容。
The perror and strerror functions that pull standard error descriptions come from the global variable, sys_errlist.
引出标准错误描述的perror和strerror函数来自sys_errlist全局变量。
It shows appropriate use of some system calls and library functions from c, including fopen, fclose, access, setvbuf, perror, strerror, and popen.
它演示了对一些系统调用和c库函数的适当使用,其中包括fopen、fclose、access、setvbuf、perror、strerror和popen。
The strerror() function isn't necessarily thread-safe; for unknown values, it formats an error message in a static buffer and returns a pointer to that buffer.
strerror()函数并没有必要是线程安全的;对于未知值,该函数在静态缓冲区中设置错误消息的格式并将指针返回到该缓冲区。
You can simulate this yourself by using a printf call and the strerror function, which returns a pointer to the textual representation of the current errno value.
您可以通过使用printf调用和strerror函数(该函数返回当前errno值的文字表示形式的指针)来模拟此程序。
Using the sys_nerr global variable and the strerror() function, you can easily whip up some code (see Listing 5) to print out all of the built-in error messages of the system.
通过使用 sys_nerr全局变量和strerror()函数,将可以很轻松地快速编写一些代码(请参见清单5)以打印出系统的所有内置错误消息。
When an error occurs in a system call, you can access and display a message corresponding to the error in at least one of two ways: by using either the perror or the strerror function.
当系统调用中出现错误时,您至少可以用以下两种方式的一种来访问和显示与该错误对应的消息:通过使用perror或strerror函数。
When an error occurs in a system call, you can access and display a message corresponding to the error in at least one of two ways: by using either the perror or the strerror function.
当系统调用中出现错误时,您至少可以用以下两种方式的一种来访问和显示与该错误对应的消息:通过使用perror或strerror函数。
应用推荐