ハッキリ言ってインターフェースが悪い。
char *strrev(char *str);
ではなく
char *strrev(const char *rev, char *str);
とすべきと言ってみるテスト