>(To be fair at this, the compiler _should_ have given a warning or >error for your code, because you're initializing a 'char *' pointer >from a 'const char *' pointer. Discarding 'const' without an explicit >cast is a programming error.)
Except that the type of a "string literal" wasn't a "const char *" as the standard claims the elements of the array have "type char". Modifying the chars merely gives undefined behaviour (which is in keeping with the fact that they are not const char *) Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
