[Vala] [Genie] automatic "array of char" to "string" conversion
- From: Arc Riley <arcriley gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] [Genie] automatic "array of char" to "string" conversion
- Date: Wed, 23 Feb 2011 23:57:07 -0500
This seems like a really trivial problem to solve; some api you're using
gives you an unterminated buffer and length you're allowed to read, the vapi
treats it as a char[] for automatic length handling, and you want to print
that buffer (or some other string function)
easy - g_strndup it.
Are there any arguments against doing this?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]