"Martin Wilck" Martin.Wilck@Fujitsu-Siemens.com wrote:
+/******************************************************************************
- netbios_char (INTERNAL)
- */
+static WCHAR netbios_char ( WCHAR wc ) +{
- static const WCHAR special[] = {'!','@','#','$','%','^','&',''',')','(','-','_','{','}','~'};
- static const WCHAR deflt = '_';
- int i;
- if ( isalnumW ( wc ) ) return wc;
- for ( i = 0; i < sizeof (special); i++ )
if ( wc == special[i] ) return wc;
- return deflt;
+}
Shouldn't be sizeof(special) above divided by sizeof(WCHAR)?
Am Mit, 2002-11-06 um 16.54 schrieb Dmitry Timoshkov:
Shouldn't be sizeof(special) above divided by sizeof(WCHAR)?
Good catch, thanks. Martin