/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.8 */
/* EMACS_MODES: !fill, lnumb, !overwrite, !nodelete, !picture */
#include "stdio.h"
#include "string.h"
#include "errno.h"
#include "stdlib.h"
#include "lp.h"
#include "form.h"
extern struct {
char *v;
short len;
short infile;
} formheadings[];
int _search_fheading ( char * );
static void print_str(int, char *, char *);
/**
** wrform()
**/
int
int *which_set)
{
int fld;
char * cp;
errno = 0;
switch (fld) {
case FO_PLEN:
break;
case FO_PWID:
break;
case FO_LPI:
break;
case FO_CPI:
else
break;
case FO_NP:
break;
case FO_CHSET:
break;
case FO_RCOLOR:
break;
case FO_CMT:
do {
if (nl)
*nl = 0;
if (nl)
*nl = '\n';
} while (cp++); /* NOT *cp++ */
}
break;
case FO_ALIGN:
/* this must always be the last field in the file
it is done outside of this loop */
break;
case FO_PAPER:
}
break;
}
/*
* Actual alignment pattern has to be written
* out by caller; we leave the file pointer ready.
*/
}
if (errno != 0)
return (-1);
/*
* Write out comment to a separate file (?)
*/
if (!error_handler) {
char * path;
return (-1);
return (-1);
}
} else
}
return (0);
}
/**
** print_sdn() - PRINT SCALED DECIMAL NUMBER WITH HEADER
** print_str() - PRINT STRING WITH HEADER
**/
static void
{
return;
return;
}
static void
{
return;
return;
}