3 ms·
struct tm in time.h has been around since C89, there may be others but that's all that immediately comes to mind.
by LiamPowell 3y ago
struct tm in time.h has been around since C89, there may be others but that's all that immediately comes to mind.
- flohofwoe 3y agoBut these are stdlib features, not language features. "Proper" strings, arrays, slices, tagged unions, etc... would need to be integrated into the language (unless you want to end up with a mess like C++).
- uecker 3y agoI am exploring way on how to implement this in C (with some extensions) as a library: https://github.com/uecker/noplate https://github.com/uecker/noplate Certainly not production ready.
- pjmlp 3y agoNot really, something like sds for strings would be doable. For arrays you may be right, possibly a fat pointer like suggested by Denis himself.