Added MemcmpTest.cpp, InheritTest.cpp
This commit is contained in:
13
datatype/MemcmpTest.cpp
Normal file
13
datatype/MemcmpTest.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include<cstring>
|
||||
#include<iostream>
|
||||
#include<hgl/type/DataArray.h>
|
||||
|
||||
int main(int,char **)
|
||||
{
|
||||
char left []="1234567890";
|
||||
char right []="2345678901";
|
||||
|
||||
std::cout<<"memcmp: "<<std::memcmp(left,right,10)<<std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user