Why is this giving error on using in built qsort
<p>I have written some piece of code which is giving me the error . The code is as follows :- </p>

<pre><code>  long long int compare (const void * a, const void * b)
   {
     return ( *(long long int*)a - *(long long int*)b );
   }

 long long int number; 
 long long int *ar =(long long int *)(malloc(sizeof(long long int)*number));
 //Took the values of number and  ar from and then performed the following
 qsort(ar,number,sizeof(long long int),compare);
</code></pre>

<p>This code results into following error :-</p>

<p><code>invalid conversion from long long int (*)(const void*, const void*)' to int (*)(const void*, const void*) initializing argument 4 of void qsort(void*, size_t, size_t, int (*)(const void*, const void*))'</code> </p>

<p>what am i doing wrong here ? </p>
