Crazy Swapping


 * Yes, we can all get a headache from the next bunch
 * of pointer swapping…
next           = current->next;
current->next  = next->next;
next->next     = current;
prev           = next;

Source: Direct link to the source code
Software: Common UNIX Printing System (CUPS)
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 4,67 von 5)

Die Kommentare sind geschlossen.