NAME

coreMsgFlagIsSet() -- test the flags in the message.


SYNOPSIS

include "appcore.h"

void coreMsgFlagIsSet( coreMsg_t* m, unsigned int f )

DESCRIPTION

The coreMsgFlagIsSet() function tests the specified flags in the message. Multiple flags may be tested at the same time. The function performs a bit wise and of the internal flags and returns the results.


PARAMETERS

m
	Pointer to message.
f
	Flags to test. Multiple flags may be specified.

RETURN VALUE

If successful, coreMsgFlagSet() returns the bit wise and of the message's bit mask and the provided bit mask. If an error occurs, -1 is returned and errno is set to one of the following:

errno ValueCondition
EINVALMessage pointer null.

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

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