Sujet : Re: Running an editor from ANSI C
De : richard.nospam (at) *nospam* gmail.invalid (Richard Harnden)
Groupes : comp.lang.cDate : 12. Jun 2024, 13:43:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4c567$1l5lm$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Mozilla Thunderbird
On 12/06/2024 10:57, Malcolm McLean wrote:
But yes, my view is the Baby X FileSystem is going to enhance Baby X and lift it to a new level. The ability to mount an internal filesystem in a small program is very useful indeed.
Why?
You have an xml file, which is just a text file, and you want to slurp that into your babyx - fine, so now you have a large char*.
Now you want to 'mount' that.
So you can opendir, readdir, ..., fopen something.
All just so that you can fgets?
Just so you can get a string out of a 'file'.
A string you basically had a pointer to already.
I'm sorry, but I just cannot see the point. Seems like you're making it way more complicated than it needs to be. I'm not sure why you think it needs to exist at all. Or why you think it's a good idea.