Defines | Functions | Variables

cifputrec.c File Reference

#include <cif.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "cif_int.h"
Include dependency graph for cifputrec.c:

Go to the source code of this file.

Defines

#define CIF_VERSION   3

Functions

static int write_strlist (char **sp, int ns)
static int write_unitdir (struct Cif_generic *cr)
int Cif_Putrecord (int cifd, struct Cif_generic *cr)

Variables

static char USMID [] = "@(#) libcif/cifputrec.c 30.6 07/26/96 07:19:13"
static FILE * fd

Define Documentation

#define CIF_VERSION   3

Definition at line 51 of file cifputrec.c.


Function Documentation

int Cif_Putrecord ( int  cifd,
struct Cif_generic cr 
)

Definition at line 122 of file cifputrec.c.

References _Cif_filetbl, _Cif_shortsize, _Cif_structsize, c, CIF_BADFORM, CIF_BADREQ, CIF_BE_NODE, CIF_C_CONST, CIF_C_ENTRY, CIF_C_ENTRY_END, CIF_C_LINT_DIRECTIVE, CIF_C_MACRO_DEF, CIF_C_MESSAGE, CIF_C_OBJECT, CIF_C_OPTS, CIF_C_TAG, CIF_CALLSITE, CIF_CDIR, CIF_CDIR_DOSHARED, CIF_COMBLK, CIF_CONST, CIF_ENDUNIT, CIF_ENTRY, CIF_F90_CALLSITE, CIF_F90_COMBLK, CIF_F90_CONST, CIF_F90_DERIVED_TYPE, CIF_F90_ENTRY, CIF_F90_INT_BLOCK, CIF_F90_LABEL, CIF_F90_MISC_OPTS, CIF_F90_NAMELIST, CIF_F90_OBJECT, CIF_F90_OPT_OPTS, CIF_F90_RENAME, CIF_F90_SCOPE_INFO, CIF_FILE, CIF_FILEDIR, CIF_FT_SIZE, CIF_GEOMETRY, CIF_LABEL, CIF_MAXRECORD, CIF_MESSAGE, CIF_MISC_OPTS, CIF_NAMELIST, CIF_ND_MSG, CIF_NOTOPEN, CIF_OBJECT, CIF_SYSERR, CIF_UNIT, CIF_UNITDIR, CIF_USAGE, CIFBEFID, CIFBENODE, CIFCB, CIFCB1, CIFCCON, CIFCDIR, CIFCDIRDO, CIFCEEND, CIFCENTRY, CIFCENTRY1, CIFCLDIR, CIFCMDEF, CIFCMSG, CIFCMSG1, CIFCOBJ, CIFCON, CIFCON1, CIFCOPTS, CIFCS, CIFCTAG, CIFENDU, CIFENTRY, CIFF90CB, CIFF90CON, CIFF90CS, CIFF90DTYPE, CIFF90ENTRY, CIFF90IB, CIFF90LABEL, CIFF90MO, CIFF90NL, CIFF90OBJ, CIFF90OPTOPT, CIFF90RN, CIFF90SI, CIFFDIR, CIFFILE, CIFGEOM, CIFLABEL, CIFMO, CIFMO1, CIFMSG, CIFNL, CIFNMSG, CIFOBJ, CIFOBJ1, CIFUNIT, CIFUSAGE, CIFUSAGE1, defs, DIM_SSIZE, _Cif_File_Tbl::fd, fd, name, Cif_unittbl::name, Cif_unittbl::nlen, NOT_A_CIF, OPTS_SSIZE, Cif_generic::rectype, TMOD_SSIZE, UNITTBL_SSIZE, write_strlist(), and write_unitdir().

Referenced by print_header_records(), print_include_records(), print_records(), sortfile(), write_header(), and write_unit().

Here is the call graph for this function:

static int write_strlist ( char **  sp,
int  ns 
) [static]

Definition at line 70 of file cifputrec.c.

References CIF_SYSERR, and fd.

Referenced by Cif_Putrecord().

static int write_unitdir ( struct Cif_generic cr  )  [static]

Variable Documentation

FILE* fd [static]

Definition at line 66 of file cifputrec.c.

char USMID[] = "@(#) libcif/cifputrec.c 30.6 07/26/96 07:19:13" [static]

Definition at line 37 of file cifputrec.c.