Wanting to scroll messages on a "display"

This routine just return the size of the output message.

The message itself must be declared somewhere else - maybe as a global variable?

By only posting pieces of the code you make it very hard for anyone to understand what is going on... if you had of posted all the code from the beginning this thread would have been solved long ago...