SomUniqueKey: Difference between revisions
Appearance
Created page with "This function returns the unique key associated with a SOM ID. ==Syntax== <PRE> somID id; unsigned long rc; rc = somUniqueKey(id); </PRE> ==Parameters== ; d (..." |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:somUniqueKey}} | |||
This function returns the unique key associated with a SOM ID. | This function returns the unique key associated with a SOM ID. | ||
==Syntax== | ==Syntax== | ||
somID id; | |||
somID id; | unsigned long rc; | ||
unsigned long rc; | |||
rc = somUniqueKey(id); | |||
rc = somUniqueKey(id); | |||
==Parameters== | ==Parameters== | ||
; d (somID) : The SOM ID for which the unique key is needed. An unsigned long representing the unique key of the specified SOM ID. | ;d (somID): The SOM ID for which the unique key is needed. An unsigned long representing the unique key of the specified SOM ID. | ||
==Return Code== | ==Return Code== | ||
; rc (unsigned long) : An unsigned long representing the unique key of the specified SOM ID. | ;rc (unsigned long): An unsigned long representing the unique key of the specified SOM ID. | ||
==Remarks== | ==Remarks== | ||
Line 31: | Line 30: | ||
==Related== | ==Related== | ||
;Data Structures | |||
* somId (sombtype.h) | * somId (sombtype.h) | ||
;Functions | |||
* [[somCheckId]] | * [[somCheckId]] | ||
* [[somRegisterId]] | * [[somRegisterId]] | ||
* [[somIdFromString]] | * [[somIdFromString]] | ||
* [[somStringFromId]] | * [[somStringFromId]] | ||
* [[somCompareIds]] | * [[somCompareIds]] | ||
* [[somTotalRegIds]] | * [[somTotalRegIds]] | ||
* [[somSetExpectedIds]] | * [[somSetExpectedIds]] | ||
* [[somBeginPersistentIds]] | * [[somBeginPersistentIds]] | ||
* [[somEndPersistentIds]] | * [[somEndPersistentIds]] | ||
[[Category:SOM | [[Category:SOM function]] |
Latest revision as of 04:45, 6 May 2020
This function returns the unique key associated with a SOM ID.
Syntax
somID id; unsigned long rc; rc = somUniqueKey(id);
Parameters
- d (somID)
- The SOM ID for which the unique key is needed. An unsigned long representing the unique key of the specified SOM ID.
Return Code
- rc (unsigned long)
- An unsigned long representing the unique key of the specified SOM ID.
Remarks
This 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.
Example Code
#include <som.h> main() { unsigned long k1, k2; k1 = somUniqueKey(somIdFromString("abc")); k2 = somUniqueKey(somIdFromString("abc")); SOM_Test(k1 == k2); }
Related
- Data Structures
- somId (sombtype.h)
- Functions