6 , struct
struct sixstrings_st {
char* ptrarr[6];
};
, , . ( , , ):
void sort_strings (char**arrptr, unsigned siz);
.
BTW, , qsort (3)
, , , . typedef struct (, union -s).
. ( , , ) ( , ). , ( struct).
C , (, ). struct ( ++, class). struct, , " " ( ). BTW, ABI - struct . x86-64 ABI Linux, struct .
(, malloc ), , , , free . foo_create, struct foo_st ( malloc struct ) foo_destroy, ( , free , struct foo_st*).
, C ( big struct -s, , union -s,...) ( , , C ). , : . , , ( , , )... C ( , , ).
, , 6 . ( ) . , , , . #define MY_WEIRD_SIZE 6 MY_WEIRD_SIZE 6 ...