fp_print_data_get_data returns the lenght of the resulting buffer. So
a more appropriate code would be:

        unsigned char *buffer;
        size_t length;
        
        length = fp_print_data_get_data(self->data, &buffer);
        if (!length)
        {
                // Handle error
        }

        // Now you have the data in buffer, and the buffer is length long.
        // The resulting buffer can contain null so don't use functions that
rely on null terminated strings


On Tue, Jun 24, 2008 at 3:40 PM, infralite <[EMAIL PROTECTED]> wrote:
> Hello,
> I was wondering why fp_print_data_get_data uses a very weird double pointer
> char. I've been trying to use it, but it ends up returning nothing save the
> FP1 prefix defined in the source. Code is as follows:
>
> http://sudrap.org/paste/3607/
>
> If possible, can I have a working example of get_data and from_data?
>
> Thanks a lot,
> ~mali
>
> _________________
> - infralite (http://constant.inople.net/)
> _______________________________________________
> fprint mailing list
> [email protected]
> http://lists.reactivated.net/mailman/listinfo/fprint
>
>
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to