Converting jpcsp to c language