• # g_array_index

    Posté par . En réponse au message Galère de pointeurs avec les GArrays. Évalué à 2.

    regarde bien, ton utilisation de g_array_index est fausse...

    si c'est un tableau de iphdr tu dois faire ça :

    struct iphdr *iph2;
    iph2 = & g_array_index(P_to_Array, struct iphdr, i);

    si c'est un tableau de iphdr* tu dois faire ça :

    struct iphdr *iph2;
    iph2 = g_array_index(P_to_Array, struct iphdr*, i);

    voilà...