strsignal


Description:

public unowned string strsignal (int signum)

Returns a string describing the given signal, e.

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

Parameters:

signum

the signal number. See the `signal` documentation

Returns:

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


Namespace: GLib
Package: glib-2.0