00001 #include <moc.h> 00002 00003 int MOC_Get_count(MOC_Status *status, MOC_Datatype datatype, int *count) 00004 { 00005 int bytecount; 00006 if (!status) 00007 return MOC_ERR_ARG; 00008 if (((datatype & 0xF0) >> 4) == 0) 00009 bytecount = 1; 00010 else 00011 bytecount = (((datatype & 0xF0) >> 4) * 2); 00012 *count = status->message_size / bytecount; 00013 return 0; 00014 } 00015
1.5.6