Central limit theorem in the functional approach