Function qsort to sort a struct

Asked

Viewed 206 times

1

typedef struct{
    long At[tam], Si[tam], Sf[tam];
}TDados;

For this struct, wanted to understand how to order the struct by Sf using the function qsort. I wonder if someone could explain to me?

  • 1

    It would need to establish criteria, which data would be considered to order. It wants to order the Sf or use the Sf How to sort key? Where’s the rest of the code?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.