FreeCalypso > hg > ueda-linux
view ueda/uschem-print/pstring.c @ 153:c147a730271f
KWH020ST23-F01.fp corrections:
1) Y geometry for the solder pads was wrong
2) add silk dots matching alignment holes in the FPC tail
| author | Mychaela Falconia <falcon@freecalypso.org> | 
|---|---|
| date | Thu, 24 Jun 2021 06:38:02 +0000 | 
| parents | cd92449fdb51 | 
| children | 
line wrap: on
 line source
/* * Emitting PostScript strings, handling all special characters */ #include <ctype.h> emit_ps_string(str) char *str; { register char *cp; register int c; putchar('('); for (cp = str; c = *cp; cp++) { if (!isprint(c)) { printf("\\%03o", c); continue; } if (c == '(' || c == ')' || c == '\\') putchar('\\'); putchar(c); } putchar(')'); }
