Input string of unknown length in c

author