c api example by dump stack