• Rafaël Carré's avatar
    dbus: prefer char[][] to *char[] · 52957d05
    Rafaël Carré authored
    makes data smaller:
     no need to store pointers to each item of the array
    
    char *x[] = { "a", "b", "c" };
    memory looks like => "a" "b" "c" (&x) &a &b &c
    
    char x[][2] = { "a", "b", "c" };
    memory looks like => (&x) "a" "b" "c"
    52957d05
dbus_root.c 8.59 KB