PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GetOwner()

Anyone have a working call to GetOwner(). It seems weird that it return a char* and takes one. I could see that if it was a duel function that sets or gets the name but not just returning it.

So, I'm having trouble figuring out how to call it.
The GetOwner() function is set up like some of the stdlib functions. The parameter is a pointer to a string that is filled with the owner name, the return value is the same pointer.

This can be useful to decrease the amount of source code. Like this:

char owner[256];
ClassEConsole::MsgWindow(ecd->reg->GetOwner(owner));