ado_strdup
![]() |
![]() |
![]() |
![]() |
ado_strdup()
Create a duplicate of a string
Synopsis:
#include <audio_driver.h> char *ado_strdup_debug( const char *src );
Arguments:
- src
- The string to be copied.
Description:
The ado_strdup() macro creates a copy of the string, src.
This macro is defined as strdup(), or ado_strdup_debug() if ADO_DEBUG is defined; see "Debugging an audio driver" in the Organization of a Driver chapter.
The advantage of using the debug variant is that it tracks the memory allocated until it's freed; see ado_memory_dump().
Returns:
Same as strdup(): a pointer to a copy of the string for success, or NULL.
Classification:
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
ado_calloc(), ado_free(), ado_malloc(), ado_memory_dump(), ado_realloc()
strdup() in the QNX Library Reference
![]() |
![]() |
![]() |
![]() |
![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)