A simple example that shown how to use netware_vol_info() to enumerate all (mounted?) volume names in LibC.
#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;
}
© 2008 Novell, Inc. All Rights Reserved.