apps/vm/components/helloworld/src/hello.c
/*
    vchantests_packet_verify:
        Check if data in a test packet is correct
*/
Check if data in a test packet is correct
Check if data in a test packet is correct
static int vchantests_packet_verify(vchan_packet_t *pak) {
    for(int i = 0; i < 4; i++) {
        if(pak->datah[i] != i + pak->pnum) {
            return 0;
        }
    }
    return 1;
}
static int vchantests_packet_verify ( vchan_packet_t * pak ) { for ( int i = 0 ; i < 4 ; i ++ ) { if ( pak -> datah [ i ] != i + pak -> pnum ) { return 0 ; } } return 1 ; }
vchantests_packet_verify:
Check if data in a test packet is correct
vchantests_packet_verify : Check if data in a test packet is correct
/* Malformed data */