Re: private types



Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx> wrote in
news:1259548.CMTukHGvVZ@xxxxxxxxxxxxxxxxxxx:

Of course programming C or C++ on such an OS could be quite
challenging (Write to (void*)0 and you mess up your Proccess
Information Descriptor).

The C/C++ standard does not require NULL pointers to be represented by all
zero bits either. The null pointer constant, (void*)0, might be translated
into 0xFFFFFFFF or some other value.

Peter
.



Relevant Pages

  • Re: How often do you have to work around implementations?
    ... Something that's bitten me a few times recently is cases in which implementations were buggy -- rarely, to be fair, in the core C language, but "standard" system extensions like POSIX conformance. ... modifying address lengths take pointers to "size_t" objects. ... If the system is FLOSS, I report a bug, at least when I know that the developers originally intended to support what I was doing. ... Replace "%N$*M$lu" with more "normal" format specifiers and repeat printf arguments explicitly that were initially re-used by the original format specifiers. ...
    (comp.lang.c)
  • Re: "<>", a relational operator?
    ... And in Standard C there are significant restrictions ... OTOH in BCPL and B pointers were ... has no whole array operations; if you want something done to all (or ... the Standard isn't vague at all -- this is specifically ...
    (comp.lang.fortran)
  • Re: Requesting advice how to clean up C code for validating string represents integer
    ... The standard form is like this, ... 1108 The sizeof operator ... ... being able to compare unrelated pointers, ... So long as the pointers are of the same type, ...
    (comp.lang.c)
  • Re: bug in visual studio .net 2003 - breakpoints and memcpy
    ... Posix is a standard too with no less (some would say ... > platforms that support the conversion. ... Conversion between code pointers to integers does not exist for the sole ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to convert a vector type into string?
    ... "A superset of the tests available with other libraries, this feature helps you detect invalid iterator operations in the Standard Template Library, as well as null pointers and invalid ordering rules for sorting ... It seems only natural to me that a function might check its preconditions, or might not, or might crash, if you pass the wrong arguments. ...
    (microsoft.public.vc.language)