diff options
author | jofret | 2007-02-14 16:40:33 +0000 |
---|---|---|
committer | jofret | 2007-02-14 16:40:33 +0000 |
commit | 5fcd2352aa1dd7a7b22fd37e9e529a8414bf30e1 (patch) | |
tree | 6338cd0169fcc49c09e928807c3a8800ba8fb88a /src/auxiliaryFunctions/isempty/sisEmptya.c | |
parent | 85c7a2e39d24c29a079a47e5c75e88c468756e5d (diff) | |
download | scilab2c-5fcd2352aa1dd7a7b22fd37e9e529a8414bf30e1.tar.gz scilab2c-5fcd2352aa1dd7a7b22fd37e9e529a8414bf30e1.tar.bz2 scilab2c-5fcd2352aa1dd7a7b22fd37e9e529a8414bf30e1.zip |
* src/test/test*.c :
Add some FIXME in order to remember to code some tests.
* src/test/testFind.c :
Testing of the find function.
* src/test/testIsEmpty.c :
Testing of the isEmpty function.
* src/misc :
Create for misc includes.
* src/auxiliaryFunctions/find/notFound.h :
Moved
* src/misc/notFound.h :
Better use here.
* */*/Makefile :
Modify all Makefiles. Remove -pedantic.
Must be crazy to use this...
* src/auxiliaryFunctions/isempty :
IsEmpty functions implementation.
* src/auxiliaryFunctions/isempty/{sdcz}isEmptya.c :
Implementation : s(float) d(double)
c(floatComplex) z(doubleComplex)
Diffstat (limited to 'src/auxiliaryFunctions/isempty/sisEmptya.c')
-rw-r--r-- | src/auxiliaryFunctions/isempty/sisEmptya.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/auxiliaryFunctions/isempty/sisEmptya.c b/src/auxiliaryFunctions/isempty/sisEmptya.c new file mode 100644 index 00000000..af8a9860 --- /dev/null +++ b/src/auxiliaryFunctions/isempty/sisEmptya.c @@ -0,0 +1,23 @@ +/* +** -*- C -*- +** +** sisEmptya.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Wed Feb 14 14:59:33 2007 jofret +** Last update Wed Feb 14 15:25:32 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#include <stdbool.h> +#include "notFound.h" + +int sfinda(float*, int); + +bool sisEmptya(float* x, int size) { + if (sfinda(x, size) == NOT_FOUND) { + return true; + } + return false; +} |