00001 #include <stdlib.h> 00002 #include <string.h> 00003 00004 #include <moc.h> 00005 #include <internal/imoc.h> 00006 00007 int MOC_Error_class(int errorcode, int *errorclass) 00008 { 00009 if (errorcode < 0 || errorcode > MOC_ERR_LASTCODE) 00010 { 00011 return MOC_ERR_ARG; 00012 } 00013 else 00014 { 00015 *errorclass = ((int) (errorcode / 1000)) * 1000; 00016 return 0; 00017 } 00018 } 00019
1.5.6