NOT new_charset struct t_charset malloc sizeof struct t_charset BUT ne

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
NOT
new_charset = (struct t_charset *)malloc (sizeof (struct t_charset));
BUT
new_charset = malloc (sizeof (*new_charset));
NOT
... length * sizeof (char) ...
BUT
... length ...