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/sisemptya.c | |
parent | c9f4f46af9956f8fc25849d9a87bcc513b6c6768 (diff) | |
download | scilab2c-38419db1635e0e498d6937ace677de266b764306.tar.gz scilab2c-38419db1635e0e498d6937ace677de266b764306.tar.bz2 scilab2c-38419db1635e0e498d6937ace677de266b764306.zip |
Update
Diffstat (limited to 'src/auxiliaryFunctions/isempty/sisemptya.c')
-rw-r--r-- | src/auxiliaryFunctions/isempty/sisemptya.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/auxiliaryFunctions/isempty/sisemptya.c b/src/auxiliaryFunctions/isempty/sisemptya.c index 3aa24517..fd02ceb3 100644 --- a/src/auxiliaryFunctions/isempty/sisemptya.c +++ b/src/auxiliaryFunctions/isempty/sisemptya.c @@ -11,20 +11,10 @@ */ #include "isempty.h" -#include "stdio.h" -float sisemptya(float* x, int size) { - float* out; - int indiceOut[2] = {0}; +#include "length.h" - out = malloc((uint)size*sizeof(float)); +float sisemptya(float* x, int size) { - sfinda(x, size, out, indiceOut); + return (size==0) ? 1.0f : 0.0f; - if ( out[0] == -1 /*ie tab=NULL*/) { - free(out); - return 1; - } - - free(out); - return 0; } |