BOOTSTRAP (kexpr) functions


LIBRARY ROUTINE

kexpr_substitute_exprs - *

LIBRARY CALL

char *kexpr_substitute_exprs(char *str, long id)

INPUT

OUTPUT

none

RETURN VALUE

result of substituting. This string should be freed by the caller.

DESCRIPTION

kexpr_substitute_exprs evaluates all embedded expressions within a string. These are of the form, $name, ${name}, or ${name:fmt}.

ADDITIONAL INFORMATION

none

EXAMPLES

result = kexpr_substitute_exprs("file.${i:04d}", KEXPR_GLOBAL_ID)

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kexpr/src/routines.c

SEE ALSO

kexpr(3)

COPYRIGHT

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