Hi Thorsten, On 2011-05-30 13:19, Thorsten Behrens wrote: > Hi Arjen! > >>> Anyway: The fix I suggested (i.e. checking the string character by >>> character for 0x0A or 0x0D) should work here as well. >> I suggest using the symbolic escape sequences \r and \n, >> as that is what they are for. > > Yes. I didn't know C has constants for that. >
There is a short list of such constants, the most useful are \t, \r and \n. > BTW: You can also define a constant for the string length instead of using > integer literals in the code. > Good thinking! Actually, as I look at the code, I see that it presumes that lines are never longer than 30 characters. If they are, the reading process will fail in an uneasy way. I will try and take care of that too. Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general