This is a library function written in C++. It is not part of any specific application. It is intended to be downloaded and used as is within other applications. This function shows how C++ uses Control+D as a termination of inputs.
All library functions are delivered without accompanying software.
Future task: Rewrite this in C language.