example of using c calling conventions