File: out_line.c

package info (click to toggle)
cti-ifhp 2.1.8-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 932 kB
  • ctags: 845
  • sloc: ansic: 6,036; sh: 1,524; makefile: 318
file content (27 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**************************************************************************
 * LPRng IFHP Filter
 * Copyright 1994-1997 Patrick Powell, San Diego, CA <papowell@sdsu.edu>
 *
 * Based on the CTI printer filters.
 *  See COPYRIGHT for details.
 *
 * $Id: out_line.c,v 2.1 1997/01/05 18:41:41 papowell Exp $
 */

#include "portable.h"
#include "common.h"
#include "hp4.h"

/*
 * Write the buffer out to the printer.
 */
void Out_line(char *sendline)
{
	int i;

	log(4,"banner: line '%s'", sendline );
	i = strlen(sendline);
	if (writecn( fileno(stdout), sendline, i ) != i){
		logerr(3,"Out_line: '%s' writecn failed\n", sendline );
	}
}