BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kprog_get_program - gets the name of the program

LIBRARY CALL

char *kprog_get_program(void)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

Gets the name of the program. This is usually the basename of the first argument in the argv structure.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

This routine returns a pointer to the private string used to store the program variable. Use this as a read only resource; do NOT change or free this pointer.

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/program.c

SEE ALSO

kutils(3)

COPYRIGHT

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