2 * $Id: headers.c,v 1.8 2002-01-03 17:49:39 sibaz Exp $
4 * Copyright (c) 1990,1994 Regents of The University of Michigan.
5 * All Rights Reserved. See COPYRIGHT.
10 #endif /* HAVE_CONFIG_H */
13 #include <sys/param.h>
16 #include <netatalk/at.h>
22 int ch_title( struct papfile *, struct papfile * );
24 int ch_title( in, out )
25 struct papfile *in, *out;
27 char *start, *stop, *p, *q, c;
28 int linelength, crlflength;
30 switch ( markline( in, &start, &linelength, &crlflength )) {
38 stop = start + linelength;
39 for ( p = start; p < stop; p++ ) {
45 for ( ; p < stop; p++ ) {
51 for ( q = p; q < stop; q++ ) {
57 if ( q < stop && p < stop ) {
65 lp_write( start, linelength + crlflength );
67 CONSUME( in, linelength + crlflength );
74 struct papd_comment headers[] = {
75 { "%%Title:", 0, ch_title, 0 },