Hi Alan and Hazen, > > An additional format issue I just thought of for these ascii colour > palette > files is line endings. Presumably some of our Windows users will > want to > edit these files directly (since they have no access to -dev tk or the > associated colour palette GUI) so the resulting ascii files will > have the > Windows line endings (\cr followed by \nl as opposed to the Unix \nl). > Also, assuming that we use the svn native line ending property for > these > files, our Windows users will checkout a version of our official > palette > files that have the windows line endings. I presume the Windows line > endings > means the null-terminated string returned by pdf_rd_header will have > a \cr > prepended to that null termination which will require a bit of care > when parsing that string (or a special provision in pdf_rd_header to > remove the \cr if it exists and the platform is windows).
AFAIK, fscanf ignores any white space including line breaks - it just "overreads" it. So, it also doesn't make sense to do fscanf(file, "%lf\n", var); just use fscanf(file, "%lf", var); Regards, Werner > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and > Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation > for stellar interiors (freeeos.sf.net); PLplot scientific plotting > software > package (plplot.org); the libLASi project (unifont.org/lasi); the > Loads of > Linux Links project (loll.sf.net); and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/blackberry > _______________________________________________ > Plplot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: [email protected] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
