src/pi_lw_gpio.c
static int check_gpio_pin(int p) {
    // There will never be more than 31 GPIO pins:
    if (p > 31) {
        return -EINVAL;
    } else {
        return 0;
    }
}
// Check if GPIO pin is in range
Check if GPIO pin is in range
Check if GPIO pin is in range
static int check_gpio_pin(int p) {
    if (p > 31) {
        return -EINVAL;
    } else {
        return 0;
    }
}
static int check_gpio_pin ( int p ) { if ( p > 31 ) { return - EINVAL ; } else { return 0 ; } }
Check if GPIO pin is in range
Check if GPIO pin is in range
// There will never be more than 31 GPIO pins: