If sizeof(array) reports the size of the pointer to the first element in the array and is always constant, that will just tell you how long a pointer is in chars.
On Fri, Jul 27, 2012 at 8:08 PM, Stefan Stavrev <[email protected]> wrote: > Will, sizeof(array) / sizeof(float) will give you number of > elements in the array. > > http://ideone.com/hZO97 > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
