Implementation of gets_s, the safe alternative to the deprecated gets function, for C compilers that don't support C11.