You are here: SwitchKit® Development Environment Programmer’s Guide > 8 Utility Functions > sk_getMessageText()

sk_getMessageText()

Description

This function converts any MsgStruct into a text string. This function is also available as skts_getMessageText().

Syntax

int sk_getMessageText(MsgStruct *aMsgStruct, char *aBuffer);

Important! The char *aBuffer must be previously allocated and at least 5000 bytes long.

Threadsafe Syntax

int skts_getMessageText( MsgStruct *aMsgStruct, char *aBuffer );

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aMsgStruct | Pointer to a generic C Structure representing a message.
aBuffer | Pointer to a packed message.

Return Values

Possible return values for this function are:

SK_LOST_LLC | This return value indicates that your application lost contact with the LLC.