/* C HACKS */ /* DEBUG */ #ifdef DEBUG #define BUG(s) s #else #define BUG(s) #endif /* typedef'ng */ typedef struct { } oS; typedef unsigned char uchar; /* Pointer Box */ // &i "address val" // *a "at (address) a" { int *iP = NULL; char *cP = NULL; void (*fviiP)(int,int) = NULL; oS *oSP = NULL; int i[2] = {1,2}; *(i + 0) == i[0]; int j[2][1] = {{1,2}}; *(*(i + 0)+ 0) == i[0][0]; char c = 'G'; void f(int a,int b){} oS x; for(iP=i;p<&i[sizeof i];iP++); *iP == 2; *(--iP) == 1; cP = &c; //& of c fviiP = &f; //& of f oSP = &x; //& of x } /* How to lowercase a string? */ { char *p; for(;*p;p++)*p=tolower(*p); }