2 problems that are just annoying me, and yes, i know am a complete perfectionist: 1, you're bumping posts, 2, youre asking people to write the code for you.

I thought that you could return an array as long as you put return array_name;. If that doesn't work, you could try using a pointer, and then of course you could always have it modify a global variable.

Why exactly are you creating a temp array? When you pass arrays by name you pass them by reference, therefore their is no need for a temp array or to assign a return value. This should speed up your program.

I have a table that can hold two lines. I want to print on the first line, if it's take but the second line is free then print there, and if both are used, then I catch the PREVIOUS message in tempmessage, print that in line 1, and the new message in line 2. So it sort of 'scrolls'.