Why are fl_file_chooser and fl_dir_chooser returning char* ?

9 views
Skip to first unread message

gnu...@gmail.com

unread,
Aug 25, 2020, 5:23:02 PM8/25/20
to fltk.coredev
It should be const char*. Or at least mention in the documentation that you should not free the result.

Ian MacArthur

unread,
Aug 25, 2020, 5:25:26 PM8/25/20
to coredev fltk
On 25 Aug 2020, at 20:22, gnuwimp wrote:
>
> It should be const char*. Or at least mention in the documentation that you should not free the result.


Hmm, curious... I’m not sure I’d choose to free a char* unless the docs explicitly said that it should be... What was the circumstance that raised this issue for you?



Reply all
Reply to author
Forward
0 new messages