[PD-dev] How to initialise array?

IOhannes m zmoelnig zmoelnig at iem.at
Thu Oct 27 13:14:26 CEST 2005


Ed Kelly wrote:

> Does anyone know of a command that initialises an
> array to zeros? I will I have to make a workaround?

[; mytable const 0(

if it crashes, then it is likely that you are writing beyond 
array-boundaries or that the array doesn't exist at all.

make sure that you respect the return-values of pd_findbyclass() and 
garray_getfloatarray()


oh and re-reading your mail i am not sure whether you are talking about 
pd-arrays (aka: tables) or C-arrays.

in the later case, you can use memset() to set it to a default value.

mfg.asdr.
IOhannes




More information about the Pd-dev mailing list