use api by c

get a bug