# mccdSdpInit

Initializes the SDP writing context for writing to the specified memory buffer.

#### Prototype

uint32_t mccdSdpInit ( MCC_SDP_CONTEXT_W * context, void * data, uint32_t size)

Argument | Description
context | Pointer to the context to initialize.
data | Pointer to the output memory buffer.
size | Size of the output memory buffer.

#### Return values

mccdSdpInit returns either MCCSDP_OK (function completed successfully) or MCCSDP_MEMORY_ERROR.

#### Example

The following example sets a 1024 byte memory buffer (sdpData) as an output buffer for the MCC_SDP_CONTEXT_W context pointed to by pc:

char sdpData[1024];
mccdSdpInit ( pc, sdpData, sizeof(sdpData) );