2 * Copyright 1991 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 /* tc.c: find character not in table to delimit fields */
23 /* choose funny characters to delimit fields */
24 int had
[128], ilin
,icol
, k
;
26 for(icol
=0; icol
<128; icol
++)
29 for(ilin
=0;ilin
<nlin
;ilin
++)
31 if (instead
[ilin
]) continue;
32 if (fullbot
[ilin
]) continue;
33 for(icol
=0; icol
<ncol
; icol
++)
35 k
= ctype(ilin
, icol
);
36 if (k
==0 || k
== '-' || k
== '=')
38 s
= table
[ilin
][icol
].col
;
42 if (*s
> 0 && (unsigned char)*s
<= 127)
47 s
=table
[ilin
][icol
].rcol
;
51 if (*s
> 0 && (unsigned char)*s
<= 127)
58 /* choose first funny character */
60 s
="\002\003\005\006\007!%&#/?,:;<=>@`^~_{}+-*ABCDEFGHIJKMNOPQRSTUVWXYZabcdefgjkoqrstwxyz";
70 /* choose second funny character */
72 s
="\002\003\005\006\007:_~^`@;,<=>#%&!/?{}+-*ABCDEFGHIJKMNOPQRSTUVWXZabcdefgjkoqrstuwxyz";
82 error(gettext("couldn't find characters to use for delimiters"));
89 return(s
>= 128 || s
<0);