BOOTSTRAP (kcms) functions


LIBRARY ROUTINE

kcms_attr_string2int - translate string to integer value

LIBRARY CALL

unsigned long
kcms_attr_string2int(
   kcms_attr attribute,
   kstring   string)

INPUT

OUTPUT

none

RETURN VALUE

An integer corresponding to the string value passed. For example, if attribute is KCMS_CMOBJ_TYPE, and string is "kroutine", this function will return the value KCMS_KROUTINE.

DESCRIPTION

This function is used to map a string to an integer value, where the string is interpreted in the context of a specified attribute.

For example, the attribute KCMS_CMOBJ_TYPE is of type integer, and can take values KCMS_KROUTINE

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kcms/src/cmobj_util.c

SEE ALSO

kcms(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.