[cairo] [RFC] Color space API (partial proposal)

Zack Weinberg zweinberg at mozilla.com
Mon Feb 22 22:21:26 PST 2010

Jon Cruz <jon at joncruz.org> wrote:
> However I'm not sure if "const char*" is really what is best. Such a
> declaration in C is really ambiguous and can represent "random byte
> data of a separately specified length" in addition to "a string".

As long as there is no separate length parameter, everyone will
understand a const char* to be a NUL-terminated string.  It should,
however, be documented to be UTF-8.

Please do not introduce unnecessary typedefs.


More information about the cairo mailing list