for(s=l ; (s!=NULL) ; s=s->next)
{
m=s ;
for(k=s->next ; k!=NULL ; k=k->next)
{
if((k->val)>(m->val)) m=k ;
}
*aide=*m;
*m=*s ;...