Get load average (porting pure-ftpd)

Which possibilities does exist to get the cpu load average from the last 5 minutes
under QNX 6 from a C-program ?

I try to port pure-ftpd 1.0.21. I get the following errors from the file getloadavg.c:

sfr-fresh.com/unix/misc/pure … tloadavg.c
sfr-fresh.com/unix/misc/pure … tloadavg.h

getloadavg.c:916: error: incompatible types in assignment
getloadavg.c:917: error: incompatible types in assignment

Maybe you can try to use the source code from ‘hogs’ utility as a base but I’m not sure if you are legaly allowed.