Read license, look at examples.cpp.
Simple and dirty C/C++ to talk to PCF8574 I2C devices on GNU/Linux.