vscphlp_getGuidFromStringToArray

int vscphlp_getGuidFromStringToArray( uint8_t *pGUID, 
                                    const char * pStr )

Parameters

pGUID

Pointer to VSCP GUID array to fill.

pStr

Pointer to GUID in string form.

Return Value

VSCP_ERROR_SUCCESS on success.

Description

Write GUID from string into array.

Example

if ( VSCP_ERROR_SUCCESS == vscphlp_getGuidFromStringToArray( GUID2, strguid ) ) {
    vscphlp_writeGuidArrayToString( GUID2, strguid2, sizeof( strguid2 )-1 );
    printf( "GUID  after reverse = %s\n", strguid2 );
}
else {
    printf( "\aError: vscphlp_getGuidFromStringToArray\n");
}

Very Simple Control Protocol
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 ""