vscphlp_writeGuidArrayToString

int vscphlp_writeGuidArrayToString( const unsigned char * pGUID, 
                                    char *strGUID,
                                    size_t len )

Parameters

pGUID

A 16 byte GUID array.

strGUID

Pointer to buffer that can hold the GUID in string form.

len

Size of string buffer.

Return Value

VSCP_ERROR_SUCCESS on success.

Description

Write GUID from byte array to string.

Example

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

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 ""