as a programmer , how to use "char* strerror_tl(int errnum)" , what file should be include
时间: 2024-05-28 13:09:19 浏览: 18
?To use "char *strerror_tl(int errnum)" as a programmer, you need to include the <errno.h> header file. This function returns a pointer to a string describing the error code passed in the argument 'errnum'.
相关问题
as a programmer , does the below code have error : int errno = 12; strerror_tl(errno);
Yes, there is an error in the code. The function "strerror_tl" is not a standard function and is not defined in the code snippet. Therefore, the compiler will generate an error message. The correct function should be "strerror" which is defined in the "string.h" header file.
int a=10;char * ptr = &a;这样的代码对吗,为什么
This code is incomplete and cannot be executed. It appears that the programmer has declared an integer variable 'a' and a pointer variable 'ptr' that is expected to store the memory address of a character variable. However, the pointer variable is not assigned a value and the character variable is not declared. The code should be completed with appropriate data types and values to be able to compile and run.