MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / PSL_copy

Function PSL_copy

src/postscriptlight.c:3663–3674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3661}
3662
3663int 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
3676int 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.

Callers 1

gmtplot_draw_eps_symbolFunction · 0.85

Calls 1

psl_prepare_bufferFunction · 0.85

Tested by

no test coverage detected