Detection Method In C