3 ms·
I dont use "goto" in C but a specialized static function that does more or less the same thing. Example is the zuluExit "goto" function: https://github.com/mhog
by mhogomchungu 10y ago
I dont use "goto" in C but a specialized static function that does more or less the same thing. Example is the zuluExit "goto" function: https://github.com/mhogomchungu/zuluCrypt/blob/master/zuluCrypt-cli/lib/open_volume.c https://github.com/mhogomchungu/zuluCrypt/blob/master/zuluCr...
- ryan-c 10y agoI don't think that solution works well in general. If you want to do cleanup of local variables, I don't see how you'd do that with a static function unless you're using globals everywhere, some awful god object, or terrible varargs hacks.