Novell Home

From what directory the NLM was loaded (LibC)

From Developer Community

This tiny sample shows how to use getnlmloadpath()

Sample Code

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

int main( void) {
  char* path;
  path = getnlmloadpath( NULL);
  puts( path ? path : "<null>");
  free( path);
  return EXIT_SUCCESS;
}

--Dmitry Mityugov

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.