Existence and classification of critical points for nondifferentiable functions