C On Character buffer manipulati...
by jaredgrubb,
October 29, 2007 15:44
A comment on Andy Lester's ...
C On Character buffer manipulati...
by engtech,
October 17, 2007 01:51
if kSpace was supposed to b...
#define kSpace 0x20
char buf[] = {0x42, 0x73, 0x75, 0x27, 0x13, 0x1C, 0x68, 0x1B, 0x64};
...
C On Character buffer manipulati...
by engtech,
October 17, 2007 01:50
Step #1: hex vs dec... what...
C On Character buffer manipulati...
by Nathan Sanders,
October 15, 2007 01:52
Look at the definition of k...
C On Character buffer manipulati...
by Andy Lester,
October 14, 2007 17:00
I suspect you don't really ...
void **node = malloc(sizeof(void *) * 3); /* A new node */
C On Misbehaving global pointer
by jonathantan86,
October 13, 2007 23:26
Because L now points to a l...
Service* service = services->at(0); // or // Service* service = (*services)[0];
/* Transforms a number to a string * e.g 1234 => "1234" * ...
C On simplest of mallocs examples
by codelion,
October 02, 2007 22:40
You need to link to the mat...
You need to link to the maths library as pointed out above. You have a statement of the form include<math.h> the function log10, ceil etc are in that file and the compiler needs to know where to get it from.
cc 49-simplest-of-mallocs-examples.cc -lm
C On simplest of mallocs examples
by takayama,
October 02, 2007 21:22
you should link "libm" to u...
#include <stdio.h>
#define p(a) putchar(a);
int main(void){unsigned char*s="Zz[»ŸYÚÑi!q!á©a‰AáA¡z!aAÑáº!Q©!ú!A:!19"
...
#define tw(a,b) a(),b()
#define twd(a,b,c) a(){tw(b,c);}
#define ptd(a,b,s,d) a(){b;printf(s);d;}
...
char*a="%c\0 \0_/\\_\0__\0/ /\0/ _ \\/ ",*f,c,n,*q="e5 m1_e4 m1\ne1m3_ / " "_/m1 m2_p1m2e1m2\n / m1/ -_) _/ _ `/ m1/ m1t1m1/\n/_/e1\\m1/_/ \\_,h3m1/_" "/\n\ne>m1e2m1\ne1m1 _e1m1 m1e1m3_e1m1_p1m1 p1\n /e1' \\p2 / m1t1_e1/ -_)_" ...
int k=0; const char *const LITERAL_1 = "#CB#_,ab:@BbBXb\\bG]N_2JNH4`X:.MRLA," ...
_=0;c(q){q<0?putchar("`',)( \n-\\_/"[q+11]):c(("!A@!]*_`8>@"
"`@V`Z`E[L]0HLF2^V8,KPJ?*_?&H^'@DPR@PJ%!!!!]QHY.PH``ZP[L;3*"
"42VKKP754F`ZOJ?PXYM+RXYPR:PRHXZ3!^P*"[_/6]-33>>_++%6&1?"FL"
...
#include <stdio.h>
int main(void)
{
...

A few comments: your push/p...