]> Dogcows Code - chaz/rasterize/blob - list.c
add support for 3d scenes, depth testing, lighting
[chaz/rasterize] / list.c
1
2 /*
3 * CS5600 University of Utah
4 * Charles McGarvey
5 * mcgarvey@eng.utah.edu
6 */
7
8 #include "list.h"
9
10 void list_reverse(list_t** l)
11 {
12 list_t* p = *l;
13 list_t* n = p->link;
14
15 p->link = NULL;
16
17 while (n) {
18 list_t* t = n->link;
19 n->link = p;
20 p = n;
21 n = t;
22 }
23
24 *l = p;
25 }
26
This page took 0.031459 seconds and 4 git commands to generate.