3 ms·
So much effort is ruined with the usage of usleep. Obfuscated C should be portable!
by deletes 13y ago
So much effort is ruined with the usage of usleep. Obfuscated C should be portable!
- deleted 13y ago[deleted]
- deletes 13y agoOne should strive to make c code as portable as possible. Obfuscated does not mean it should be hard to compile.
- ekr 13y agoWhat's not portable about the usleep function? It's in the POSIX standard for portable operating systems (http://pubs.opengroup.org/onlinepubs/7990989799/xsh/usleep.html http://pubs.opengroup.org/onlinepubs/7990989799/xsh/usleep.h...). It doesn't get much more portable than that. Edit: Apparently, it has indeed been removed from SUSv4.