From aab442042bba14c3e4e7675c04dbbfc32a079117 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 23 Oct 2011 23:07:53 -0400 Subject: [PATCH] adding the bit of tomfoolery which looks at the raw byte code of functions --- ex18.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ex18.c b/ex18.c index 34bf3e1..5a5a77a 100644 --- a/ex18.c +++ b/ex18.c @@ -80,6 +80,13 @@ void test_sorting(int *numbers, int count, compare_cb cmp) printf("\n"); free(sorted); + + unsigned char *data = (unsigned char *)cmp; + + for(i = 0; i < 25; i++) { + printf("%0x:", data[i]); + } + printf("\n"); }