| << Prev | appCORE Programming Guide | Next >> |
NAME
coreMsgDup() -- duplicate a message.
SYNOPSIS
include "appcore.h" coreMsg_t* coreMsgDup( coreMsg_t* p )
DESCRIPTION
The coreMsgDup() function duplicates the appCORE message passed in and returns a pointer to the new message.
PARAMETERS
p Pointer to a message.
RETURN VALUE
If successful, coreMsgDup() returns a pointer to the new message. If an error occurs, NULL is returned and errno is set to one of the following:
| errno Value | Condition | |
| EINVAL | Message pointer null. | |
| Message type is invalid. | ||
| ENOMEM | Unable to allocate memory for message. |
MULTI-THREAD SAFETY LEVEL
MT-safe.
SEE ALSO
| << Prev | appCORE Programming Guide | Next >> |