Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Sepples nullptr

Name: Anonymous 2012-12-31 14:39

template <typename T>
int pointerIsNull(T *ptr) {
    if (ptr == nullptr) {
        return 1;
    } else if (ptr != nullptr) {
        return 0;
    } else {
        return -1;
    }
}

Name: Anonymous 2012-12-31 15:20

C nullptr:

#define null(p) (!(p))

Name: Anonymous 2012-12-31 17:52

>>2
That was ACADEMIC quality!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List