SUN/234.5

Starlink Project
Starlink User Note 234.5

R.T.Platon & T. Jenness

3rd December 2013

Copyright © 2000 Council for the Central Laboratory of the Research Councils


ONE – Odds and Ends Library

Version 1.4

User’s Guide



Abstract

This library is a set of Fortran and C routines of a general nature and usefulness, which are not suitable for inclusion in other more focussed libraries.

Contents

1 Introduction
2 List of routines
3 Routines descriptions
ONE_EXEC – Executes a shell command
ONE_FIND_FILE – Returns successive file names that match a file specification
ONE_FIND_FILE_END – Terminate a sequence of ONE_FIND_FILE calls
ONE_SCRSZ – A Fortran callable function to obtain the size of the output screen
ONE_SHELL_ECHO – Interpret shell metacharacters in a string, without file globbing.
one_snprintf – Starlink compliant wrapper around the standard snprintf function
one_strlcat – Starlink compliant wrapper around the BSD strlcat function
one_strlcpy – Starlink compliant wrapper around the BSD strlcpy function
one_strtod – Starlink compliant wrapper around the standard strtod function
ONE_WORDEXP_FILE – WORDEXP wrapper that verifies a file exists
ONE_WORDEXP_NOGLOB – WORDEXP wrapper that expands shell variables without globbing