Implemented the ack function in roeReal.c