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;
25 struct papd_comment *comment = compeek();
27 switch ( markline( in, &start, &linelength, &crlflength )) {
35 stop = start + linelength;
36 for ( p = start; p < stop; p++ ) {
42 for ( ; p < stop; p++ ) {
48 for ( q = p; q < stop; q++ ) {
54 if ( q < stop && p < stop ) {
62 lp_write( start, linelength + crlflength );
64 CONSUME( in, linelength + crlflength );
71 struct papd_comment headers[] = {
72 { "%%Title:", 0, ch_title, 0 },