Jump to content

SomCheckId: Difference between revisions

From EDM2
Created page with "==Description== This function registers a som ID. ==Syntax== <PRE> somId id; somId rc; rc = somCheckId(id); </PRE> ==Parameters== ; id (somId) : The somId to be regi..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Description==
{{DISPLAYTITLE:somCheckId}}
This function registers a som ID.  
This function registers a som ID.


==Syntax==
==Syntax==
<PRE>
somId    id;
somId    id;
somId    rc;
somId    rc;
rc = somCheckId(id);


rc = somCheckId(id);
</PRE>
==Parameters==
==Parameters==
; id (somId) : The somId to be registered.  
;id (somId): The somId to be registered.
 


==Return Code==
==Return Code==
; rc (somId) : The registered somId.
;rc (somId) : The registered somId.
 


==Remarks==
==Remarks==
This function registers a SOM ID and converts it into an internal representation. The input SOM ID is returned. If the ID is already registered, this function has no effect.  
This function registers a SOM ID and converts it into an internal representation. The input SOM ID is returned. If the ID is already registered, this function has no effect.


==Example Code==
==Example Code==
Line 24: Line 21:


==Related==
==Related==
===Data Structures===
;Data Structures
* [[somId]] (sombtype.h)  
* somId (sombtype.h)  
 
;Methods
===Methods===
* [[somRegisterId]]
* [[somRegisterId]]
* [[somFromString]]
* [[somIdFromString]]
* [[somStringFromId]]
* [[somStringFromId]]
* [[comCompareIds]]
* [[somCompareIds]]
* [[somTotalRegIds]]
* [[somTotalRegIds]]
* [[somSetExpectedIds]]
* [[somSetExpectedIds]]
Line 38: Line 34:
* [[somEndPersistentIds]]
* [[somEndPersistentIds]]


 
[[Category:SOM function]]
[[Category:The OS/2 API Project]]
[[Category:SOM Kernel]]

Latest revision as of 02:23, 6 May 2020

This function registers a som ID.

Syntax

somId    id;
somId    rc;

rc = somCheckId(id);

Parameters

id (somId)
The somId to be registered.

Return Code

rc (somId)
The registered somId.

Remarks

This function registers a SOM ID and converts it into an internal representation. The input SOM ID is returned. If the ID is already registered, this function has no effect.

Example Code

See function somBeginPersistentIds().

Related

Data Structures
  • somId (sombtype.h)
Methods