update c-support/codesnippets/main.c