[Vala] [Genie] automatic "array of char" to "string" conversion



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]