some example code for c/c++