check_strerror_r_char_p.cpp
Go to the documentation of this file.00001 #include <errno.h>
00002 #include <string.h>
00003
00004 int main()
00005 {
00006 const int errnum = 0;
00007 const int bufferLength = 256;
00008 char buffer[bufferLength + 1];
00009 errno = 0;
00010 const char* result = ::strerror_r(errnum, buffer, bufferLength);
00011 }