2 List of routines

These routines were collected by examining possible entries and by a request for contributions. Extra routines may be added when necessary.

The contents of the library are (in alphabetical order):

ONE_EXEC( COMMAND, STATUS )
    Executes a shell command. Extracted from CCDPACK (submitted by P. Draper).

ONE_FIND_FILE( FILESPEC, LISDIR, FILENAME, CONTEXT, STATUS )
    Returns successive file names that match a file specification. Taken from FIGARO, SST, CONVERT, KAPPA and CCDPACK.

ONE_FIND_FILE_END( CONTEXT, STATUS )
    Terminate a sequence of FIND_FILE calls. Taken from FIGARO, SST, CONVERT, KAPPA and CCDPACK.

ONE_SCRSZ( WIDTH, HEIGHT, STATUS )
    A Fortran callable function to obtain the size of the output screen. Taken from CONVERT, KAPPA and IRCAMPACK.

ONE_SHELL_ECHO( FILESPEC, FILENAME, STATUS )
    Expands shell metacharacters in a string without file globbing.

one_snprintf( str, size, format, status, ... )
    Starlink compliant wrapper around the standard snprintf function.

one_strlcat( dest, src, sizedest, status )
    Wrapper around the standard BSD strlcat C function (safer variant of strncat).

one_strlcpy( dest, src, sizedest, status )
    Wrapper around the standard BSD strlcpy C function (safer variant of strncpy).

one_strtod( instr, status )
    Extract a double precision value from a C string.

ONE_WORDEXP_FILE( WORDS, CONTEXT, EXPAN, STATUS)
    WORDEXP wrapper that verifies a file exists.

ONE_WORDEXP_NOGLOB( WORDS, EXPAN, STATUS)
    WORDEXP wrapper that expands shell variables without globbing.