annotate src/libsndfile-1.0.25/tests/sfversion.c @ 23:619f715526df
sv_v2.1
Update Vamp plugin SDK to 2.5
author |
Chris Cannam |
date |
Thu, 09 May 2013 10:52:46 +0100 |
parents |
c7265573341e |
children |
|
rev |
line source |
Chris@0
|
1 /*
|
Chris@0
|
2 ** Copyright (C) 1999-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
|
Chris@0
|
3 **
|
Chris@0
|
4 ** This program is free software; you can redistribute it and/or modify
|
Chris@0
|
5 ** it under the terms of the GNU General Public License as published by
|
Chris@0
|
6 ** the Free Software Foundation; either version 2 of the License, or
|
Chris@0
|
7 ** (at your option) any later version.
|
Chris@0
|
8 **
|
Chris@0
|
9 ** This program is distributed in the hope that it will be useful,
|
Chris@0
|
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Chris@0
|
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Chris@0
|
12 ** GNU General Public License for more details.
|
Chris@0
|
13 **
|
Chris@0
|
14 ** You should have received a copy of the GNU General Public License
|
Chris@0
|
15 ** along with this program; if not, write to the Free Software
|
Chris@0
|
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Chris@0
|
17 */
|
Chris@0
|
18
|
Chris@0
|
19 #include <stdio.h>
|
Chris@0
|
20 #include <stdlib.h>
|
Chris@0
|
21 #include <string.h>
|
Chris@0
|
22
|
Chris@0
|
23 #include <sndfile.h>
|
Chris@0
|
24
|
Chris@0
|
25 #define BUFFER_SIZE (256)
|
Chris@0
|
26
|
Chris@0
|
27
|
Chris@0
|
28 int
|
Chris@0
|
29 main (void)
|
Chris@0
|
30 { static char strbuffer [BUFFER_SIZE] ;
|
Chris@0
|
31 const char * ver ;
|
Chris@0
|
32
|
Chris@0
|
33 sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ;
|
Chris@0
|
34 ver = sf_version_string () ;
|
Chris@0
|
35
|
Chris@0
|
36 if (strcmp (ver, strbuffer) != 0)
|
Chris@0
|
37 { printf ("Version mismatch : '%s' != '%s'\n\n", ver, strbuffer) ;
|
Chris@0
|
38 exit (1) ;
|
Chris@0
|
39 } ;
|
Chris@0
|
40
|
Chris@0
|
41 printf ("%s", strbuffer) ;
|
Chris@0
|
42
|
Chris@0
|
43 return 0 ;
|
Chris@0
|
44 } /* main */
|
Chris@0
|
45
|