Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void DBMCli_String::MakeReverse (  )  [inline]

------------------------------------------------------------------------- function: MakeReverse ------------------------------------------------------------------------- description: Reverses the characters in this string. -------------------------------------------------------------------------

Definition at line 658 of file DBMCli_Stuff.hpp.

{
#ifdef _WIN32
  strrev( m_pszString );
#else
  char chTemp;

  for ( int i = 0; i < m_nLen / 2; i++ )
  {
    chTemp = m_pszString[ i ];
    m_pszString[ i ] = m_pszString[ m_nLen - 1 - i ];
    m_pszString[ m_nLen - i - 1 ] = chTemp;
  }
#endif
}


Generated by  Doxygen 1.6.0   Back to index