c snippet small fixes

dart snippet may be outdated - change long time ago