|
server 0.0.1
basicserverinfrastructure
|
00001 #include "http/header.h" 00002 00003 static 00004 inline 00005 int 00006 comp (const void * _a, const void * _b) 00007 { 00008 const HttpHeader a = *(const HttpHeader *)_a; 00009 const HttpHeader b = *(const HttpHeader *)_b; 00010 return (a->hash < b->hash)? -1 : (a->hash > b->hash)? 1 : 0; 00011 } 00012 00013 void 00014 httpHeaderSort(const HttpHeader header[], int nheader) 00015 { 00016 qsort(header, nheader, sizeof(HttpHeader), comp); 00017 } 00018 00019 // vim: set ts=4 sw=4: