aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-09-03 15:03:21 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-09-03 15:03:21 +0000
commite80ffb5d91cd3e017b5549e912a4e93f7bf03572 (patch)
tree93044111e8523c10cc531080fb5802816fd8983b /examples
parentf8eed0713059b5c4e8e56ba98b8a33fe2a472d84 (diff)
downloadLibXtract-e80ffb5d91cd3e017b5549e912a4e93f7bf03572.tar.gz
LibXtract-e80ffb5d91cd3e017b5549e912a4e93f7bf03572.tar.bz2
LibXtract-e80ffb5d91cd3e017b5549e912a4e93f7bf03572.zip
Back to C99 in CFLAGS, but at least we (should) have the C89 option if anyone can't make it work with their compiler
Diffstat (limited to 'examples')
-rw-r--r--examples/simpletest/simpletest.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/examples/simpletest/simpletest.c b/examples/simpletest/simpletest.c
index 45df60a..3ead2d6 100644
--- a/examples/simpletest/simpletest.c
+++ b/examples/simpletest/simpletest.c
@@ -1,25 +1,27 @@
-/* xtract~ - PD library for feature extraction
-Copyright (C) 2006 Jamie Bullock
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/
+/* libxtract feature extraction library
+ *
+ * Copyright (C) 2006 Jamie Bullock
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ * USA.
+ */
#include "xtract/libxtract.h"
#include <stdio.h>
-int main() {
+int main(void) {
float mean = 0, vector[] = {1, 2, 3};