Removed a file that has been there since the original TuxKart, but hasn't been used for anything since I can remember.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-12-13 21:23:03 +00:00
parent 28409f5842
commit 586b7adc33

View File

@ -1,41 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
int main ( int argc, char **argv )
{
char *fname = argv[1] ;
FILE *fd = fopen ( fname, "ra" ) ;
if ( fd == NULL )
{
fprintf ( stderr, "Can't open '%s' for reading.\n", fname ) ;
exit ( 1 ) ;
}
for ( int i = 0 ; !feof(fd) ; i++ )
{
char s [ 1024 ] ;
if ( fgets ( s, 1023, fd ) == NULL )
break ;
if ( *s == '#' || *s < ' ' )
continue ;
float x, y ;
if ( sscanf ( s, "%f,%f", &x, &y ) != 2 )
{
fprintf ( stderr, "Syntax error in '%s'\n", fname ) ;
exit ( 1 ) ;
}
x -= 66.68 ;
y = (-y) + 5.39 ;
printf ( "%g,%g\n", x, y ) ;
}
fclose ( fd ) ;
}