int compare_tagnumbers(const void* a, const void* b) { const struct tag *arg1 = a; const struct tag *arg2 = b; if (arg1->number < arg2->number) return -1; if (arg1->number > arg2->number) return 1; return 0;}
Standard input is empty
prog.c: In function ‘compare_tagnumbers’: prog.c:5:13: error: dereferencing pointer to incomplete type ‘const struct tag’ if (arg1->number < arg2->number) return -1; ^~
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!