Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::memory::StrCmp Function
C++
MEM_PROC int MEM_API StrCmp(CTEXTSTR pOne, CTEXTSTR pTwo);
MEM_PROC int MEM_API StrCmp(const char * s1, CTEXTSTR s2);
Parameters 
Description 
const char * s1 
string to compare 
CTEXTSTR s2 
string to compare 

0 if equal. 

1 if (s1 >s2) 

-1 if (s1 < s2) 

if s1 is NULL and s2 is not NULL, return is -1. 

if s2 is NULL and s1 is not NULL, return is 1. 

if s1 and s2 are NULL return is 0.

Compares two strings. Must match exactly.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!