* < 0: region1 is alphabetically less than region2<br>
* > 0: region1 is alphabetically greater than region2
*/
-int memicmp(const void* region1, const void* region2, int size)
+int _memicmp(const void* region1, const void* region2, int size)
{
unsigned char* ptr1 = (unsigned char*) region1;
unsigned char* ptr2 = (unsigned char*) region2;
checkEqu("xw.ab", buffer);
}
void testMemicmp(){
- checkEqu(0, memicmp((void*) "abcd", (void*) "abcx", 3u));
- checkEqu(0, memicmp("aBcd", "AbCx", 3));
+ checkEqu(0, _memicmp((void*) "abcd", (void*) "abcx", 3u));
+ checkEqu(0, _memicmp("aBcd", "AbCx", 3));
- checkEqu(1, memicmp("bbcd", "abcx", 3));
- checkEqu(-1, memicmp("abcd", "bbcx", 3));
+ checkEqu(1, _memicmp("bbcd", "abcx", 3));
+ checkEqu(-1, _memicmp("abcd", "bbcx", 3));
- checkEqu(1, memicmp("Bbcd", "abcx", 3));
- checkEqu(-1, memicmp("aBcd", "bbcx", 3));
+ checkEqu(1, _memicmp("Bbcd", "abcx", 3));
+ checkEqu(-1, _memicmp("aBcd", "bbcx", 3));
- checkEqu(1, memicmp("bbcd", "abcx", 3));
- checkEqu(-1, memicmp("ABcd", "bbcx", 3));
+ checkEqu(1, _memicmp("bbcd", "abcx", 3));
+ checkEqu(-1, _memicmp("ABcd", "bbcx", 3));
}
};
LC_COPY_FILE_5, // 50105
LC_COPY_FILE_6, // 50106
};
-const char* ReDirTools::m_version = "2015.01.05";
+const char* ReDirTools::m_version = "2015.01.06";
static const char* s_helpSummary[] = {
"dirtool or dt <command> <opts>",
"help shows info about the arguments/options",
"list shows the meta data of the selected files",
"statistic shows statistics about a direcctory tree",
- "synchronize adapts the content of a directory tree to another",
+ "synchronize copies only modified or new files from",
+ " from a source directory tre to a target",
NULL
};