sizeof gpointer



Hi,
Great Free software developers!
I really need help on this one :)

i have:

        void func (gpointer data)
        {
                /* code ... */
        }

How can i get size of data in bytes ?

if I do sizeof ("text") i will get 5
if I do sizeof (255) i will get 4
if I do sizeof (12345678.987654321) i will get 8...

But if i do sizeof (data) i get crazy numbers :( (data is a gpointer)
I can not continue work on my prog without this problem solved :(

Thanks,
vladeck sezampro yu







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]