completed reverse_nullterm_string