learn c api