+SDL_Rect *points;
+int psize;
+
+void
+ReadPoints (char *filename)
+{
+ FILE *file;
+ char *buffer;
+ char *next;
+ size_t len;
+ int i;
+ file = fopen (filename, "r");
+ fscanf (file, "%d\n", &psize);
+ points = malloc (sizeof (SDL_Rect) * psize);
+ if (points == NULL)
+ abort ();
+ buffer = NULL;
+ len = 0;
+ for (i = 0; i < psize; i++)
+ {
+ getline (&buffer, &len, file);
+ points[i].x = strtol (buffer, &next, 0);
+ points[i].y = strtol (next+1, NULL, 0);
+ }
+ fclose (file);
+}