Bull DPX/20 Podręcznik Użytkownika Strona 49

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 48
SOM Kernel Reference 1-37
somUniqueKey Function
Purpose
Returns the unique key associated with a SOM ID.
Syntax
unsigned long somUniqueKey (somID id);
Description
The somUniqueKey function returns the unique key associated with a SOM ID. The unique
key for a SOM ID is a number that uniquely represents the string that the SOM ID
represents. The unique key for a SOM ID is the same as the unique key for another SOM ID
only if the two SOM IDs represent the same string.
Parameters
id The SOM ID for which the unique key is needed.
Return Value
An unsigned long representing the unique key of the specified SOM ID.
C Example
#include <som.h>
main()
{
unsigned long k1, k2;
k1 = somUniqueKey(somIdFromString(”abc”));
k2 = somUniqueKey(somIdFromString(”abc”));
SOM_Test(k1 == k2);
}
Related Information
Functions: somCheckId, somRegisterId, somIdFromString, somStringFromId,
somCompareIds, somTotalRegIds, somSetExpectedIds, somBeginPersistentIds,
somEndPersistentIds
Data Structures: somId (sombtype.h)
Przeglądanie stron 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag