Jump to content

SomTotalRegIds: Difference between revisions

From EDM2
Created page with "This function returns the total number of SOM IDs that have been registered. ==Syntax== <PRE> unsigned long rc; rc = somTotalRegIds(); </PRE> ==Parameters== ==Return Co..."
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:somTotalRegIds}}
This function returns the total number of SOM IDs that have been registered.
This function returns the total number of SOM IDs that have been registered.



Revision as of 03:33, 13 October 2017

This function returns the total number of SOM IDs that have been registered.

Syntax

unsigned long    rc;

rc = somTotalRegIds();

Parameters

Return Code

rc (unsigned long)
Returns the total number of SOM IDs that have been registered.

Remarks

This 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.

Example Code

#include <som.h>
main()
{ int i;
  somId id;
  somEnvironmentNew();
  id = somIdFromString("abc")
  i = somTotalRegIds();
  id = somIdFromString("abc");
  SOM_Test(i == somTotalRegIds);
}

Related

Functions