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