Bull DPX/20 Uživatelská příručka Strana 48

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 423 424

Komentáře k této Příručce

Žádné komentáře