Reverse words

Write a program to reverse the words of the entered string.
Example: I am awesome
Result: I ma emosewa

#include<stdio.h>
void Reverse_Words(char*);
int main()
{
	char s[100];
	printf("Enter String = ");
	scanf("%[^\n]",s);
	Reverse_Words(s);
	printf("%s\n",s);
	return 0;
}
void Reverse_Words(char*p)
{
	int i,m,n;
	char ch;
	for(i = 0;p[i];i++)
	{
		m = i;
		for(;p[i]!=32 && p[i];i++);
		n = i-1;
		for(;m < n;)
		{
			ch = p[m];
			p[m] = p[n];
			p[n] = ch;
			m++,n--;
		}
	}
}

Output

Enter String = nraeLoTtoL
LotToLearn
Enter String = still its amazing
llits sti gnizama