Novell Home

How to use NWGetAvailableMemory() in LibC code

From Developer Community

NWGetAvailableMemory() can be used in both CLIB and LibC programs to estimate the amount of memory available for allocation.

Sample Code

#include <netware.h>
#include <stdio.h>
#include <stdlib.h>

int main( void) {
  printf( "%d\n", NWGetAvailableMemory());
  return EXIT_SUCCESS;
}

--Dmitry Mityugov

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.