Novell Home

Netware vol info() (LibC)

From Developer Community

A simple example that shown how to use netware_vol_info() to enumerate all (mounted?) volume names in LibC.

Sample Code

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

int main( void) {
  struct volume_info info;
  int secuence = 0;
  int ccode;
  while (( ccode = netware_vol_info( &info, &secuence)) == 0) {
    printf( "volume_info.name = %s\n", info.name);
  }
  printf( "ccode = %d\n", ccode);
  return EXIT_SUCCESS;
}

--Dmitry Mityugov

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.