Wrecker, that's not correct. C does not have a getline function. C++ does. The OP distinctly says, 'C'. Please be careful about misleading the questioners.