| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Convert an error code to a string
#include <sys/asoundlib.h> const char *snd_strerror( int errnum );
libasound.so
The snd_strerror() function converts an error code to a string. Its functionality is similar to that of strerror() (see the QNX Library Reference), except that it returns the correct strings for sound error codes.
A pointer to the error message. Don't modify the string that it points to.
If snd_strerror() doesn't recognize the value for errnum, it returns a pointer to the string “Unknown error.”
See the wave.c example in the appendix.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
errno, strerror() in the QNX Library Reference
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |