4 ms·
For a rough estimation, you can use my bc at [1] which uses goto extensively for safe and effective use of setjmp() and longjmp(), while having no memory leaks
by ghoward 5y ago
For a rough estimation, you can use my bc at [1] which uses goto extensively for safe and effective use of setjmp() and longjmp(), while having no memory leaks (to my knowledge).
When going through the code, though, be aware that some goto's are in #define's to make it easier to work with setjmp().
If you're lazy, it's about 10k loc with about 100-200 uses of goto.
[1]: https://git.yzena.com/gavin/bc https://git.yzena.com/gavin/bc