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