vscphlp_writeVscpEventToString

int vscphlp_writeVscpEventToString( const vscpEvent *pEvent, 
                                    char *pstr, 
                                    size_t len )

Parameters

pEvent

The VSCP event which will be written to the string buffer.

pstr

Pointer to string buffer that will receive result.

len

Size of buffer.

Return Value

VSCP_ERROR_SUCCESS is returned on success.

Description

Write VSCP event content to a string.

Example

```c char eventBuf[128]; if ( VSCP_ERROR_SUCCESS == vscphlp_writeVscpEventToString( pEvent, eventBuf, sizeof( eventBuf )-1 ) ) { printf( "OK vscphlp_writeVscpEventToString Event = %s\n", eventBuf );
} else { printf( "\aError: vscphlp_writeVscpEventToString\n"); }

vscphlp_writeVscpEventExToString


Very Simple Control Protocol
Wed Jul 04 2018 19:49:59 GMT+0000 (UTC)
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""