Re: C++ Question [message #340008 is a reply to message #339983] |
Wed, 09 July 2008 16:57 |
=HT=T-Bird
Messages: 712 Registered: June 2005
Karma:
|
Colonel |
|
|
You should either use (const) char* or std::string. char* is marginally faster, but it's easier to make silly, sloppy, and sometimes exploitable errors with it. BTW, you don't need to call an extra function, as Text[1] is already an std::string and .c_str() gives you a char* from it.
HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.
If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
[Updated on: Wed, 09 July 2008 17:00] Report message to a moderator
|
|
|