On Thu, Jan 22, 2009 at 1:59 PM, Frederik <scumm_fr...@gmx.net> wrote:
> jezra wrote:
>> I can now compile without error, but when I try to read the length of
>> the header_fields variable, I get a -1.
>
> Yes, that's because it's a null terminated array and has no length
> information. But just recently Vala has a solution for that problem:
> http://bugzilla.gnome.org/show_bug.cgi?id=514186
>
> Try
>
>  [CCode (array_length = false, array_null_terminated = true)]
>
> Regards,
>
> Frederik
> _______________________________________________
> Vala-list mailing list
> Vala-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list
>

Thank you, that works perfectly!
_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to