Need help making a module that sorts 4 arrays this how it started out
void dataSort (float sLengthArray[],float rSlopeArray[],float speedArray[], float size)
{
void swap (int *x,int *y);
int pass,j;
for (pass=0;pass < size-1; pass++)
{
for (a = 0;j< size-1; j++)
{
if (slengthArray[j] > slengthArray[j + 1])
{
swap(&slengthArray[j],&slengthArray[j+1]);
}
}
}
}
void swap ( int *x,int *y)
{
int hold=*x;
*x = *y;
*y = hold;
}