froggyswamp
October 25th, 2009, 02:47 PM
Folks, while learning C & Gtk I found that in some cases one is required to pass a NULL terminated string array. As far as I understand NULL is required for the other function to detect the length of the array.
If so, isn't it a small inconsistency that in other areas one is required to also pass the size (of whatever array) as a separate parameter? or is here performance at stake? Just wondering.
EDIT:
oops apparently the post before mine clarified this
http://ubuntuforums.org/showthread.php?t=1300667
If so, isn't it a small inconsistency that in other areas one is required to also pass the size (of whatever array) as a separate parameter? or is here performance at stake? Just wondering.
EDIT:
oops apparently the post before mine clarified this
http://ubuntuforums.org/showthread.php?t=1300667