int vscphlp_isGUIDEmpty( unsigned char *pGUID )



GUID array to check for all zeros.

Return Value

True (non-zero) if GUID are empty.


Check if GUID is empty (all nulls).


unsigned char emptyGUID[16];
memset( emptyGUID,0, 16 );
if ( vscphlp_isGUIDEmpty( emptyGUID ) ) {
    printf( "vscphlp_isGUIDEmpty  - GUID is detected as empty as it should be\n" );    
else {
    printf( "\aError: vscphlp_isGUIDEmpty\n");

if ( vscphlp_isGUIDEmpty( GUID2 ) ) {
    printf( "\aError: vscphlp_isGUIDEmpty\n");    
else {
    printf( "vscphlp_isGUIDEmpty  - GUID is detected as NOT empty as it should be\n" );

Very Simple Control Protocol
Fri Jan 11 2019 17:30:44 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 ""