strerror


Description:

public unowned string strerror (int errnum)

Returns a string corresponding to the given error code, e.

g. "no such process". You should use this function in preference to strerror, because it returns a string in UTF-8 encoding, and since not all platforms support the strerror function.

Parameters:

errnum

the system error number. See the standard C errno documentation

Returns:

a UTF-8 string describing the error code. If the error code is unknown, it returns "unknown error (<code>)".


Namespace: GLib
Package: glib-2.0