cannam@85: /* cannam@85: ** Copyright (C) 1999-2011 Erik de Castro Lopo cannam@85: ** cannam@85: ** This program is free software; you can redistribute it and/or modify cannam@85: ** it under the terms of the GNU General Public License as published by cannam@85: ** the Free Software Foundation; either version 2 of the License, or cannam@85: ** (at your option) any later version. cannam@85: ** cannam@85: ** This program is distributed in the hope that it will be useful, cannam@85: ** but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: ** GNU General Public License for more details. cannam@85: ** cannam@85: ** You should have received a copy of the GNU General Public License cannam@85: ** along with this program; if not, write to the Free Software cannam@85: ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. cannam@85: */ cannam@85: cannam@85: #include cannam@85: #include cannam@85: #include cannam@85: cannam@85: #include cannam@85: cannam@85: #define BUFFER_SIZE (256) cannam@85: cannam@85: cannam@85: int cannam@85: main (void) cannam@85: { static char strbuffer [BUFFER_SIZE] ; cannam@85: const char * ver ; cannam@85: cannam@85: sf_command (NULL, SFC_GET_LIB_VERSION, strbuffer, sizeof (strbuffer)) ; cannam@85: ver = sf_version_string () ; cannam@85: cannam@85: if (strcmp (ver, strbuffer) != 0) cannam@85: { printf ("Version mismatch : '%s' != '%s'\n\n", ver, strbuffer) ; cannam@85: exit (1) ; cannam@85: } ; cannam@85: cannam@85: printf ("%s", strbuffer) ; cannam@85: cannam@85: return 0 ; cannam@85: } /* main */ cannam@85: