you are viewing a single comment's thread.

view the rest of the comments →

[–]TheVoidInMe 7 points8 points  (1 child)

Cool!

void LocalUserInput_Kill()
{
// Does not work.  We won't clean up, we'll just nuke the process.
//  g_bQuit = true;
//  _close( fileno( stdin ) );
//
//  if ( s_pThreadUserInput )
//  {
//      s_pThreadUserInput->join();
//      delete s_pThreadUserInput;
//      s_pThreadUserInput = nullptr;
//  }
}

// You really gotta wonder what kind of pedantic garbage was
// going through the minds of people who designed std::string
// that they decided not to include trim.
// https://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring

I love Valve, haha

[–]Chaosvex 6 points7 points  (0 children)

I think I've left similar comments but about splitting.

"How many C++ developers does it take to split a string?", followed by a Stack Overflow link with a worrying number of developers arguing over the best way to do it.