update c file and readme.md