NWGetAvailableMemory() can be used in both CLIB and LibC programs to estimate the amount of memory available for allocation.
#include <netware.h>
#include <stdio.h>
#include <stdlib.h>
int main( void) {
printf( "%d\n", NWGetAvailableMemory());
return EXIT_SUCCESS;
}
© 2008 Novell, Inc. All Rights Reserved.