You are here: SwitchKit® Development Environment Programmer’s Guide > 8 Utility Functions > sk_getMessageText()
Description
This function converts any MsgStruct into a text string. This function is also available as skts_getMessageText().
int sk_getMessageText(MsgStruct *aMsgStruct, char *aBuffer);
Important! The char *aBuffer must be previously allocated and at least 5000 bytes long.
int skts_getMessageText( MsgStruct *aMsgStruct, char *aBuffer );
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. |
Possible return values for this function are:
SK_LOST_LLC |
This return value indicates that your application lost contact with the LLC. |