Function stdio_strrev

Function Documentation

void stdio_strrev(char *s, size_t len)

Reverse a string of known length.

Reverses a string of known length in O(N) time, because there is no need to call strlen() to find the length of the string. Modified the original string is by this function.

Parameters:
  • s – The string to reverse.

  • len – Length of the string to reverse.