Interesting C question

From: Jim Battle <frustum_at_pacbell.net>
Date: Wed Feb 6 23:12:04 2002

At 07:56 PM 2/6/02 -0500, you wrote:
>It was thus said that the Great Cini, Richard once stated:
> >
> > When in the MSVC debugger, the undeclared variable has the value
> > 0xcccccccc. OK.
>
>...
>#ifdef MIPS
># define PADDING 0xB1
># define NULLP 0xB1B1B1B1
>#elif defined I386
># define PADDING 0xCC
># define NULLP 0xCCCCCCCC
>#elif defined MC68K
># define PADDING 0xA1
># define NULLP 0xA1A1A1A1
>#elif defined RS6000
># define PADDING 0xB1
># define NULLP 0xB1B1B1B1
>#else
># error Please define system
>#endif

My favorite bogus fill value/return code (because it is obvious, not
because it traps if executed) is 0xDEADBEEF.

And to make it on topic, I've been using that value for more than 10 years.

-----
Jim Battle == frustum_at_pacbell.net
Received on Wed Feb 06 2002 - 23:12:04 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:34:44 BST