Re: how could I write this cpp macro
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 12:29:03 -0700
"L7" <jesse.r.brown@xxxxxxxxx> writes:
#define pdebug(args...) do { \
printf ("%s:", __FUNCTION__); \
printf (args); \
} while (0);
That's GCC-specific.
--
int main(void){char p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof p-1;putchar(p[i]\
);}return 0;}
.
- References:
- how could I write this cpp macro
- From: Bilgehan . Balban
- Re: how could I write this cpp macro
- From: L7
- how could I write this cpp macro
- Prev by Date: Re: Convert 00010000 to 11110000......how?
- Next by Date: Re: Convert 00010000 to 11110000......how?
- Previous by thread: Re: how could I write this cpp macro
- Next by thread: [newbie] strcpy, strtok and strcat problem...
- Index(es):