Originally Posted by
aGerman
If you really want to check if you have enough space you need to perform an initial iteration to verify that all characters that you want to overwrite are still asterisks.
What is the reason for having only a single put() function? do you want to write into whatever direction the word fits?