| |
| | [No title] |
 | | Also */ /* note that, due to an unfortunate oversight, there is no HEADER.GSC */ /* on the 1.0 and 2.0 CDs; you can copy one to your hard drive from a */ /* 3.0 or higher, and UNPACK will use it. |
 | | */ if(!ifile) ifile = fopen(filename, "rb"); /*...then on CD */ /* On the 1.0 and 2.0 CDs, GSCDATA.IDX is in the root dir */ sprintf(filename, "%c:\\gscdata.idx", cd_drive_letter); if(!ifile) ifile = fopen(filename, "rb"); /* check on local drive... |
 | | (unsigned)bytes_left : tptr - buff); printf("%u bytes left in buffer; %lu to go\n", n_valid, bytes_left); memmove(buff, tptr, n_valid); tptr = buff; fread(buff + n_valid, readsize, 1, ifile); } rval = gsc_star_uncrunch(&star, &hdr, (unsigned char *)tptr); /* n ra.ra dec.dec perr mag. |
| www.projectpluto.com /unpack.cpp (391 words) |
|