Ignore:
Timestamp:
01/26/12 23:37:52 (16 months ago)
Author:
literalka
Message:

turn query into array/list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmutil.h

    r671 r673  
    155155    } 
    156156 
     157    static char * ParseQuery(char toparse[]) 
     158    { 
     159        char * pch = strtok(toparse, "&"); 
     160 
     161        while (pch != NULL) 
     162        { 
     163            printf("%s\n",pch); 
     164            pch = strtok(NULL, "&"); 
     165        } 
     166        return pch; // TODO return an array/list of somesort. 
     167    } 
     168 
    157169}; 
    158170 
Note: See TracChangeset for help on using the changeset viewer.