| 3661 | } |
| 3662 | |
| 3663 | int PSL_copy (struct PSL_CTRL *PSL, const char *txt) { |
| 3664 | /* Just copies the given text as is to the PSL output stream or buffer */ |
| 3665 | if (PSL->internal.memory) { |
| 3666 | size_t len = strlen (txt); |
| 3667 | psl_prepare_buffer (PSL, len); /* Make sure we have enough memory to hold the text */ |
| 3668 | strncat (&(PSL->internal.buffer[PSL->internal.n]), txt, len); |
| 3669 | PSL->internal.n += len; |
| 3670 | } |
| 3671 | else /* Just write to the PS file */ |
| 3672 | fprintf (PSL->internal.fp, "%s\n", txt); |
| 3673 | return (PSL_NO_ERROR); |
| 3674 | } |
| 3675 | |
| 3676 | int PSL_plotarc (struct PSL_CTRL *PSL, double x, double y, double radius, double az1, double az2, int type) { |
| 3677 | /* Plot an arc with radius running in azimuth from az1 to az2. |
no test coverage detected