I just cut & pasted this into my code (without the META_LOG statement
however) and it works without crashing. Is the code below supposed to
be a repro case out of context?
Jay
> I had to remove dependance on the standard STL library,
> otherwise server
> admins were getting a cannot find libstd error.
> I cant believe the code got so muddled in the original mails,
> no line breaks
> :\
>
> But yeah, I re-wrote it removing Valve's functions and its
> working but I
> thought the reason for these functions was to help us. Most
> of them aren't
> used in the SDK at all, so what are they there for?
>
> ---------------------------------------------
> CUtlVector<char*, CUtlMemory<char*> > outStrings;
> const char *sToDo = "gren, pans, heli";
> Q_SplitString( sToDo, ",", outStrings );
> char sTmp[25] = "";
> int x = 0;
> for ( x = 0; x < outStrings.Count(); x++ )
> {
> Q_StrSubst( outStrings[x], " ", "", sTmp, 25, true );
> META_LOG( g_PLAPI, "String:'%s'", sTmp );
> }
> Q_strcpy( sTmp, "" );
> outStrings.PurgeAndDeleteElements();
> return;
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders