Subject:
|
Re: Getting rif off the 8.3 nomenclature??? (scanf tricks)
|
Newsgroups:
|
lugnet.cad.dat.parts, lugnet.cad.dev
|
Date:
|
Thu, 29 Mar 2007 01:26:16 GMT
|
Viewed:
|
1527 times
|
| |
| |
In lugnet.cad.dat.parts, Jim DeVona wrote:
|
In lugnet.cad.dat.parts, Kevin L. Clague wrote:
|
Given that sscanf splits things up by whitespace, I think LPub and LSynth
would misparse file names with blanks or tabs in them.
As I said, Willy has a good argument, and well worthy of consideration.
I think that as long as there is embedded white space is not allowed, the
change will be backward compatible and not cause problems (at least not for
LPub and LSynth).
|
I have no idea whether this could be worked into your sscanf usage, but it
is possible to read whitespace into strings with the scanf functions using
scanlists (sets of [valid] or [^invalid] characters). Its not the
most elegant solution, but heres a simplistic C example anyway:
|
snip
|
Anyway, I would agree that there really need not be any whitespace in the
official part library filenames. However, I do find 8.3 character filename
limitations exceptionally archaic, and as an end user I do like to use
natural whitespace instead of hyphens or underscores in filenames (LDraw
models or otherwise). So, thought Id share this C trivia just in case it
helps lead to an easier-ish solution.
Be well,
Jim
|
Hi Jim,
Thanks!
Ill use it.
Kevin
|
|
Message has 1 Reply:
Message is in Reply To:
25 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|