[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    cfp_init(3) manual page Table of Contents

Name

cfp_init - initialize parse routines on supplied file name

Synopsis


#include <cfht/cfht.h>#include <cfht/cfp.h>FILE_ID cfp_init(name)char *name;
libcfht.a

Description

Name is the path name of the configuration file. This routine must be run before any other routine in this package.

Return Value

The return value is an id handle to be passed to other routines in this package. However, if an error occurs, cfp_init will return FAIL.

Errors

Possible errors for cfp_init:
[ENOSPC]
Too many configuration files already open.
[E2BIG]
Name is too long.
[ENODEV]
Name is a NULL pointer.
[ENOTTY]
corrupt file.

See Also

cfp(4) .

Warnings


Table of Contents