Error code handling routines.
More...
Error code handling routines.
- Author
- Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz
- Date
- 1998-2001
Error code handling routines.
◆ snd_lib_error_set_local()
Install local error handler.
- Parameters
-
func | The local error handler function |
- Return values
-
Previous | local error handler function |
◆ snd_strlcat()
size_t snd_strlcat |
( |
char * |
dst, |
|
|
const char * |
src, |
|
|
size_t |
size |
|
) |
| |
Append a C-string into a sized buffer.
- Parameters
-
dst | Where to append the string to |
src | Where to copy the string from |
size | Size of destination buffer |
- Return values
-
The | total string length (no trimming) |
The result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result.
◆ snd_strlcpy()
size_t snd_strlcpy |
( |
char * |
dst, |
|
|
const char * |
src, |
|
|
size_t |
size |
|
) |
| |
Copy a C-string into a sized buffer.
- Parameters
-
dst | Where to copy the string to |
src | Where to copy the string from |
size | Size of destination buffer |
- Return values
-
The result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.
◆ snd_err_msg
The ALSA error message handler