pointers to functions, dereferencing, first byte of func
Doug Gwyn
gwyn at smoke.brl.mil
Thu Jan 31 07:17:20 AEST 1991
In article <1991Jan30.031315.9427 at dgbt.doc.ca> don at dgbt.doc.ca (Donald McLachlan) writes:
-char *c;
-extern char func();
-c = func;
-what I had to do to get at the first byte of executable code was ...
-char *c1;
-c1 = &(c[1]);
---c1; /* should equal c[0] */
-*c1 = char constant.
This seems to me to have nothing to do with Standard C...
More information about the Comp.std.c
mailing list