Hi, thanks John!
--- >Returning to the higher-level discussion, it is not necessary to do a >strdup in this situation, as the following constructive suggestion >illustrates. ... Johns nice example ... int main(){ char aa[100]; const char* xx(aa); const char* yy; yy = strchr(xx); // const yy = strchr(aa); // non const } o.k. so far, but the job that has to be done is to use the derefenced pointer returned by strchr() as an LVAL. (In order to split filename and an integer) int main(){ char aa[100]; const char* xx(aa); char* yy; yy = strchr(xx); // oops, not const *yy = 0; // Yeah } IMHO one needs strdup here. Olaf ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel