porting 'tryit.c'