Hier uebrigens das Pendant in C++:

http://free-hack.com/ansi-c-c-c/5342...tml#post423931