GPIO Library for C

This GPIO Library doesn't need root access to run. It uses /sys/class/gpio/ to communicate with the GPIO pins.
Click here to get the code

Documentation

void gpio_init(int pin, char* direction)
Sets the direction of the pin. Allowed values for direction are "in" and "out".
void gpio_write(int pin, int value)
Sets the output value of the pin. Allowed values for value are 0 and 1
int gpio_read(int pin)
Reads the value from a pin. Returns 0 or 1.