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

-std=c99 my anus

Name: Anonymous 2009-11-25 15:29

[code]$cat test.c
#include <stdlib.h>
#include <string.h>

int main(void) {
    char *foo;
    foo = strdup("bar");
    free(foo);
    return 0;
}
$gcc test.c
$gcc -std=c99 test.c
test.c: In function 'main':
test.c:6: warning: implicit declaration of function 'strdup'
test.c:6: warning: assignment makes pointer from integer without a cast[code]
What the heck is this, /prog/? Is there some shit around strdup() in c99?

Name: Anonymous 2009-12-01 13:46

>>58
This is the fucking stupidest argument I've ever heard. Of course const is short for constant. What else is it short for? constantine? constantinople?

Now, what you are trying to say (that is, if IHNBT) is that a const variable doesn't mean that it is permanently "constant" in the truest sense of the word. There I'll agree with you, but to say that Bjarne pulled const out of his ANUS to just magically represent (what are referred to as) constant variables is stupid.

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