To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 5043
5042  |  5044
Subject: 
Re: Voting Open for LCAD Parts Update 2000-02
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 22 Aug 2000 21:07:49 GMT
Viewed: 
948 times
  
Steve Bliss wrote...
2546.dat - Animal Bird
Crashes LEdit!

Hmm.  There are two lines, missing a space between numbers:

3 16 4.3 -44.26 -0.85 4.3 -44.51 -1.099 4.3-44.78 -0.915
[...]
3 16 -4.3 -44.26 -0.85 -4.3 -44.51 -1.099 -4.3-44.78 -0.915

Interesting that L3P doesn't pick up on this error.  Apparently, L3P's
parser is too smart. ;)

Well, I didn't know it was that smart (or ignorant...)
I'm simply using sscanf with the format string
"%d %s %f %f %f %f %f %f %f %f %f %f %f %f"
Let me carefully re-read the sscanf documentation...
"One white-space character in the format matches
any number (including 0) and combination of white-space
characters in the input."
Ah, "including 0". You learn something new everyday!
Well, sscanf is not suitable for checking, but otherwise it works OK ;)
/Lars



Message is in Reply To:
  Re: Voting Open for LCAD Parts Update 2000-02
 
(...) Note to everyone (repeating myself from just a few minutes ago): the one thing that practically *can't* be changed after a part is released is the orientation and positioning! So it may seem picayune to argue about these things, but it is very (...) (24 years ago, 22-Aug-00, to lugnet.cad.dev)

73 Messages in This Thread:





























Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR