#include <stdio.h>
#include <string.h>

void swapstring( char temp_str[] )
{
    int str_len = strlen(temp_str);
    int start = 0;
    int end = str_len - 1;
    char temp_char;
    
    while( start < end )
    {
        temp_char = temp_str[end];
        temp_str[end] = temp_str[start];
        temp_str[start] = temp_char;
        
        start++;
        end--;
    }
}

int main(void) {
	// your code goes here
	unsigned char temp_str[] = "hello world";
	printf("Original string : %s \n", temp_str);
	swapstring(temp_str);
	printf("Swaped string : %s \n", temp_str);
	
	return 0;
}
