NAME
iraWriteRegFile, iraWriteRegFP - Write the contents of an
AD_APPL structure into an IRAPI Application Registration
file.
SYNOPSIS
#include <irapi-ad.h>
int iraWriteRegFile(AD_APPL *p_appl)
int iraWriteRegFP(FILE *fp, AD_APPL *p_appl)
DESCRIPTION
These two functions write the contents of an AD_APPL struc-
ture, pointed to by p_appl into the corresponding registra-
tion file.
The iraWriteRegFile function takes a pointer to an AD_APPL
structure and then uses the function iraRegFilePath(3IRAPI)
to translate the reg_file field into a full pathname of the
registration file. It then opens the file and calls iraWri-
teRegFP to write the file.
The iraWriteRegFP function takes a FILE pointer to an
already open registration file and writes the contents of
the AD_APPL structure pointed to by p_appl to the file.
RETURN VALUE
IRR_OK if successful.
IRR_FAIL on failure.
ERROR
On error, irError is set as follows:
IRER_INVALID if an invalid argument is passed in.
IRER_SYSERROR if a system error occurred, irSysError will be
set to errno accordingly.
SEE ALSO
iraRegFilePath(3IRAPI-AD), iraReadReg(3IRAPI-AD), IRAPI-
AD(4IRAPI-AD)
VERSION
This is version 8/31/00 of this man page.