diff options
author | torset | 2009-02-04 14:22:40 +0000 |
---|---|---|
committer | torset | 2009-02-04 14:22:40 +0000 |
commit | 38419db1635e0e498d6937ace677de266b764306 (patch) | |
tree | 0d3f1768cacbed0c6dab659be618eec95f64b9d9 /src/auxiliaryFunctions/isempty/cisemptya.c | |
parent | c9f4f46af9956f8fc25849d9a87bcc513b6c6768 (diff) | |
download | scilab2c-38419db1635e0e498d6937ace677de266b764306.tar.gz scilab2c-38419db1635e0e498d6937ace677de266b764306.tar.bz2 scilab2c-38419db1635e0e498d6937ace677de266b764306.zip |
Update
Diffstat (limited to 'src/auxiliaryFunctions/isempty/cisemptya.c')
-rw-r--r-- | src/auxiliaryFunctions/isempty/cisemptya.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/auxiliaryFunctions/isempty/cisemptya.c b/src/auxiliaryFunctions/isempty/cisemptya.c index 7736f370..8702953a 100644 --- a/src/auxiliaryFunctions/isempty/cisemptya.c +++ b/src/auxiliaryFunctions/isempty/cisemptya.c @@ -11,20 +11,10 @@ */ #include "isempty.h" +#include "length.h" float cisemptya(floatComplex* x, int size) { - float* out; - int indiceOut[2] = {0}; - out = malloc((uint)size*sizeof(float)); - - cfinda(x, size, out, indiceOut); - - if ( out[0] == -1 /*ie tab=NULL*/) { - free(out); - return 1; - } + return (size==0) ? 1.0f : 0.0f; - free(out); - return 0; } |