| United States-English |
|
|
|
![]() |
HP-UX Event Manager Programmer's Guide: HP-UX 11i v3 Edition 1 > Chapter 4 Sample EVM Programming OperationsMatching Event Names |
|
The EVM naming policy enables you to extend an event name with any number of trailing components, yet still match its base name. This means that you cannot depend on an event with exactly the name you expect it to have, because it may have extra trailing components. To compare an event's name against a known name, you must not use the usual string comparison functions because they incorrectly fail to match the name if components are added. Instead, you must use EVM's name-matching functions. These functions match an event name against the pattern you supply, ignoring any trailing components in the candidate name. They also enable you to include wildcard characters in your name pattern. Example 4-9 introduces the following functions and describes EVM name-matching functions:
Example 4-9 Matching Event Names
|
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||