Enable compile time specification of data and locale directories and prefs file
[neverball] / share / binary.c
index c66672e..3ba6c3e 100644 (file)
@@ -63,13 +63,6 @@ void put_array(FILE *fout, const float *v, size_t n)
         put_float(fout, v + i);
 }
 
-void put_string(FILE *fp, char *str)
-{
-    int len = strlen(str) + 1;
-    fwrite(str, 1, len,  fp);
-}
-
-
 /*---------------------------------------------------------------------------*/
 
 void get_float(FILE *fin, float *f)
@@ -114,23 +107,4 @@ void get_array(FILE *fin, float *v, size_t n)
         get_float(fin, v + i);
 }
 
-void get_string(FILE *fp, char *str, int len)
-/* len includes room for '\0'.  If len is too small, the string is truncated. */
-{
-    char b;
-
-    while (1)
-    {
-        fread(&b, 1, 1, fp);
-        if (len > 0)
-        {
-            *(str++) = (len > 1 ? b : '\0');
-            len--;
-        }
-        if (b == '\0')
-            return;
-    }
-}
-
-
 /*---------------------------------------------------------------------------*/