[Wifidog] Alex shouldn't code so much
Alexandre Carmel-Veilleux
saruman at northernhacking.org
Wed Apr 14 23:40:48 EDT 2004
Heh, I got 3 bad attempts at making a 6 line test case...
I've included the working one to be run on the openwrt ;-).
Alex
-------------- next part --------------
#include <stdio.h>
#include <strings.h>
#include <ctype.h>
int
main(int argc, char **argv)
{
char *test;
char *p;
test = strdup("GET / HTTP/1.0\r\n\r\n");
p = test;
while (isalpha(*p))
p++;
*p = 0;
if (strcasecmp(test,"GET") == 0)
printf("Good\n");
else
printf("Bad\n");
}
-------------- next part --------------
_______________________________________________
Wifidog mailing list
Wifidog at isf.waglo.com
http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com
More information about the Wifidog
mailing list