cpp -> c and some probe implementation