On Wed, 19 Mar 2008, Sam Mason <sam(at)samason(dot)me(dot)uk> writes:
> ...
> char * str = cstring_of_text(src_text);
> ...
>
> I think I got my original inspiration for doing it this way around from
> the Caml language.
Also, used in Common Lisp as class accessors:
char *s = cstring_of(text);
text *t = text_of(cstring);
But I'd vote for TextPGetCString style Tom suggested for the eye-habit
compatibility with the rest of the code.
Regards.