Re: [Plplot-devel] Question about the callback in plslabelfunc

2009-09-02 Thread Hezekiah M. Carty
On Wed, Sep 2, 2009 at 6:04 AM, Andrew Ross wrote: > On Wed, Sep 02, 2009 at 01:06:16AM -0700, Jerry wrote: >> In example x19c.c, the callback geolocation_labeler for plslabelfunc >> has an argument named length which is used only in a call to snprintf. >> The purpose appears to be to be an input t

Re: [Plplot-devel] Question about the callback in plslabelfunc

2009-09-02 Thread Andrew Ross
Jerry, This argument is passed in by the user (in C) to say how long the label string (char *label) is to prevent overruns. The output string must be pre-allocated by the user. Andrew On Wed, Sep 02, 2009 at 01:06:16AM -0700, Jerry wrote: > In example x19c.c, the callback geolocation_labeler

[Plplot-devel] Question about the callback in plslabelfunc

2009-09-02 Thread Jerry
In example x19c.c, the callback geolocation_labeler for plslabelfunc has an argument named length which is used only in a call to snprintf. The purpose appears to be to be an input to fix the length of the string formed by snprintf. I can't find where this argument receives a value. Trying