3 ms·
Another lesson is: Don't cripple your standard library. If C had a function for this super common need then this problem would never happen.
by boxed 5y ago
Another lesson is:
Don't cripple your standard library. If C had a function for this super common need then this problem would never happen.
- joshuaissac 5y agoThe C standard does not even have the plain mkdir function. It is defined in POSIX.
- unbanned 5y agoDoes this make sense? Wouldn't the language spec then need to be aware of what OS it was running on. Or the OS would have to conform to the C specification? Would be a bit weird there
- boxed 5y agoWe are talking about creating directories here...
- smarx007 5y agoHow would it work on a microcontroller without a filesystem?
- im3w1l 5y agoHow would fopen work without a filesystem? How would printf work if there is no notion of stdout? C standard has a carveout for this case, in free-standing mode, only a small subset of the standard library is available.