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 ValueCondition
EINVALMessage pointer null.
Message type is invalid.
ENOMEMUnable to allocate memory for message.

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreMsgCreate() coreMsgFree() coreMsgDispatch() coreMsgForward() coreMsgBroadcast() coreMsgFlagSet() coreMsgFlagIsSet() coreMsgFlagClr()