Duplicate of C function. Thread closed.