ctSysQueueCount Return the number of messages waiting in the queue. Short Name ctSysQueueCount() Type ISAM function. Declaration NINT ctSysQueueCount(NINT qhandle) Description ctSysQueueCount() can be used to obtain the number of messages waiting in the system queue. Parameter qhandle is a system queue handle returned by a call to ctSysQueueOpen(). Return ctSysQueueCount returns the number of messages in the queue, or a negative number on error.
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example /* check the number of messages on a queue */ NINT count = ctSysQueueCount(qhandle);
printf("There are %d messages on my queue\n", count);
else printf("ctSysQueueCount failed with code %d\n", -count);
Limitations Client/Server mode only. See also ctSysQueueRead() |
||||||||||||