Bull DPX/20 User's Guide Page 48

  • Download
  • Add to my manuals
  • Print
  • Page
    / 424
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 47
1-36 SOMobjects Base Toolkit: Programmers Reference Manual
somTotalRegIds Function
Purpose
Returns the total number of SOM IDs that have been registered.
Syntax
unsigned long somTotalRegIds ( );
Description
The somTotalRegIds function returns the total number of SOM IDs that have been
registered so far. This value can be used as a parameter to the somSetExpectedIds
function to advise SOM about expected ID usage in later executions of a client program.
Return Value
Returns the total number of SOM IDs that have been registered.
C Example
#include <som.h>
main()
{ int i;
somId id;
somEnvironmentNew();
id = somIdFromString(”abc”)
i = somTotalRegIds();
id = somIdFromString(”abc”);
SOM_Test(i == somTotalRegIds);
}
Related Information
Functions: somCheckId, somRegisterId, somIdFromString, somStringFromId,
somCompareIds, somSetExpectedIds, somUniqueKey, somBeginPersistentIds,
somEndPersistentIds
Page view 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 423 424

Comments to this Manuals

No comments