a sample of source code and a rule file I got from cppcheck sourceforge for a quick test, copy these files to your cppcheck directory.