init call cpp in c example