Choco OS  V.0.16.9.0
Join to the chocolate world
oc_struct.h
Go to the documentation of this file.
1 
28 #ifndef SYSTEM_LIBRARIES_INC_OC_STRUCT_H_
29 #define SYSTEM_LIBRARIES_INC_OC_STRUCT_H_
30 
31 #include <string.h>
32 #include <oc_math.h>
33 
34 #define oC_AreEqual(S1,S2) ( memcmp(&S1,&S2, oC_MIN(sizeof(S1),sizeof(S2))) == 0 )
35 #define oC_Struct_Copy(S1,S2) memcpy(&S1,&S2,oC_MIN(sizeof(S1),sizeof(S2)))
36 #define oC_Struct_Initialize(S,Value) memset(&S,Value,sizeof(S))
37 
38 #endif /* SYSTEM_LIBRARIES_INC_OC_STRUCT_H_ */
Basic math operations.