All I know is that strtok() is supposed to return a string... I suppose that'd be a char *, yeah.

What do you mean by "pass cmd by reference"?