2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
10 #include <sys/syslog.h>
11 #include <sys/param.h>
18 int ch_title( struct papfile *, struct papfile * );
20 int ch_title( in, out )
21 struct papfile *in, *out;
23 char *start, *stop, *p, *q, c;
24 int linelength, crlflength;
26 switch ( markline( in, &start, &linelength, &crlflength )) {
34 stop = start + linelength;
35 for ( p = start; p < stop; p++ ) {
41 for ( ; p < stop; p++ ) {
47 for ( q = p; q < stop; q++ ) {
53 if ( q < stop && p < stop ) {
61 lp_write( start, linelength + crlflength );
63 CONSUME( in, linelength + crlflength );
70 struct papd_comment headers[] = {
71 { "%%Title:", 0, ch_title, 0 },