C interface implementtion plus test
c interface new approach