C Extension - return an array of longs or pointer?

Bernhard Herzog bh at intevation.de
Wed Oct 12 16:42:09 CEST 2005

Brandon K <prince_amir86 at yahoo.com> writes:

> 	long* result = 0;
> 	result = doNumberStuff(in,x);
> 	len = sizeof(result)/sizeof(long);

I don't think this will do what you appear to expect it to do.


Intevation GmbH                                 http://intevation.de/
Skencil                                           http://skencil.org/
Thuban                                  http://thuban.intevation.org/

More information about the Python-list mailing list