Pure c code snippet,less is more.