Bull DPX/20 Betriebsanweisung Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
SOM Kernel Reference 1-9
somCompareIds Function
Purpose
Determines whether two SOM IDs represent the same string.
Syntax
int somCompareIds (somId id1, somId id2);
Description
The somCompareIds function returns 1 if the two input IDs represent strings that are equal;
otherwise, it returns 0.
Parameters
id1 The first SOM ID to be compared.
id2 The second SOM ID to be compared.
Return Value
Returns 1 if the two input IDs represent strings that are equal; otherwise, it returns 0.
C Example
#include <som.h>
main()
{
somId id1, id2, id3;
somEnvironmentNew();
id1 = somIdFromString(“this”);
id2 = somIdFromString(“that”);
id3 = somIdFromString(“this”);
SOM_Test(somCompareIds(id1, id3));
SOM_Test(! somCompareIds(id1, id2));
}
Related Information
Functions: somCheckId, somRegisterId, somIdFromString, somStringFromId,
somTotalRegIds, somSetExpectedIds, somUniqueKey, somBeginPersistentIds,
somEndPersistentIds
Data Structures: somId (sombtype.h)
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare