Research and Implementation of Automatic Detection Tool for C Code Defects