API Guide
601355 Rev A Getting Started 1-11
Getting Started
#include <stdio.h>
#include <vs_client.h>
main()
{VST_HOSTNAME vshost;
/* get volserv host name from the user */
printf ( “Enter the name of the VolServ host
computer ==> “ );
scanf ( “%s”, vshost );
/* initialize the VolServ API. */
/* returns TRUE if successful, */
/* FALSE if fails. */
if ( VS_Initialize ( vshost, 0, 30 ) )
{/* send and create commands */
.............
/* allow VolServ API to */
/* terminate properly */
VS_Terminate();
}
else
{printf ( “Error initializing VolServ
API” );
}
}