Would this C function work?

Printable View