Sort n names in the descending order

This program accepts n names from user as input and saves it in character array.After accepting the names,it sort's the n names.

Pointer list is used for sorting the names.The pointer list stores the n names accepted from user.Two for loops are used for comparing the comsecutive names.String function strcmp compares two consecutive names and the names are swapped in descending order.For swapping string function strcpy is used which swaps the two names by using temporary variable temp.This process continous until all the consecutive names are considered.When all the consecutive names are considered, the names are sorted and stored in variable list.

#include < stdio.h >
#include < conio.h > 
#include < alloc.h >

void main()
{
	char *list[100],temp[10];
	int n,i,j;
	clrscr();
	printf("How many names?\n");
	scanf("%d",&n);
	printf("Enter %d names \n",n);
	for(i=0;i < n;i++)
	{
		list[i]=(char *)malloc(100);
		flushall();
		gets(list[i]);
	}
	for(i=0;i < n-1;i++)
	{
		for(j=i+1;j < n;j++)
		{
			strcmp(list[i],list[j]);
			{
				strcpy(temp,list[i]);
				strcpy(list[i],list[j]);
				strcpy(list[j],temp);
			}
		}
	}
	printf("The %d names in sorted order are\n",n);
	for(i=0;i < n;i++)
	{
		puts(list[i]);
	}
}//main