components/nstackx/nstackx_ctrl/core/nstackx_device.c
/* Return NSTACKX_TRUE if ifName prefix is the same, else return false */
Return NSTACKX_TRUE if ifName prefix is the same, else return false
Return NSTACKX_TRUE if ifName prefix is the same else return false
static uint8_t NetworkInterfaceNamePrefixCmp(const char *ifName, const char *prefix)
{
    if (strlen(ifName) < strlen(prefix)) {
        return NSTACKX_FALSE;
    }
    if (memcmp(ifName, prefix, strlen(prefix)) == 0) {
        return NSTACKX_TRUE;
    }
    return NSTACKX_FALSE;
}
static uint8_t NetworkInterfaceNamePrefixCmp ( const char * ifName , const char * prefix ) { if ( strlen ( ifName ) < strlen ( prefix ) ) { return NSTACKX_FALSE ; } if ( memcmp ( ifName , prefix , strlen ( prefix ) ) == 0 ) { return NSTACKX_TRUE ; } return NSTACKX_FALSE ; }
Return NSTACKX_TRUE if ifName prefix is the same, else return false
Return NSTACKX_TRUE if ifName prefix is the same else return false