void reverse_string(char* string, int str_size) {
char tmp;
int i = 0;
int j = str_size - 1;
while (i < j) {
tmp = string[i];
string[i] = string[j];
string[j] = tmp;
++i;
--j;
}
}
I think this function is reentrant, since it doesn't use any global variable. It only modifies the arguments.
My question is: is this function reentrant? if it is, is my argument good enough?
thanks in advance