Hi,

Yes, fp_print_data_get_data does indeed return size_t, and I am using
that as part of my error handling (removed it for the email code).

For the function fread, the third argument is disregarded when I pass
in uprint as a pointer.  I've played around with the values for the
second argument, but that didn't seem to make a difference.

Thanks,
Philip

On Fri, Feb 22, 2008 at 2:36 AM, Vasily Khoruzhick <[EMAIL PROTECTED]> wrote:
> On 22 February 2008 09:03:42 Philip Dinu wrote:
>  > fp_print_data_get_data(data, &print);
>  > fprintf(fp, print);
>
>  fp_print_data_get_data returns size_t - the size of serialized data. Look at
>  
> http://www.reactivated.net/fprint/api/group__print__data.html#g3e3d0244d35990e2019a70dd2dc24de0
>
>
>  > The value in print it actually stores looks something like "FP1\002"
>  > Now, when trying to read it:
>  > --
>  > r = fread(uprint, 1, 10, fp);
>
>  And here you should supply size of saved data, why only 10?
>
>  Regards
>  Vasily
>
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to