Serial-TCP/IPbridge  1.0
Functions
error.h File Reference

Error messages functions declarations. More...

#include <string>

Go to the source code of this file.

Functions

std::string errnoToString (int errNum)
 Transforms the selected errno number into a string that represents the error. More...
 

Detailed Description

Error messages functions declarations.

Encoding: UTF-8 Project: Serial-TCP/IP bridge

Author
Petr Zemek, xzeme.nosp@m.k02@.nosp@m.stud..nosp@m.fit..nosp@m.vutbr.nosp@m..cz
Date
2009

Function Documentation

std::string errnoToString ( int  errNum)

Transforms the selected errno number into a string that represents the error.

Parameters
errNumThe errno number.
Returns
String describing the passed error code.

Thread-safe version of the standard strerror() function (it is a wrapper around the thread-safe function strerror_r() to provide a more convenient thread-safe way how to transform an errno into a string).