I2C_ LCD-Display in C/C++

I am using an I2C lcd display, we have only python libraries and its working.

Any sample code for I2C in C/C++

the device has 2 *I2C addresses
lcdcmd(0x62);
lcdcmd (0x3e);

I used this to reslove
http://www.frank-buss.de/io-expander/linux-i2c-test.c