ADIC Digital Camera 601355 Rev A User Manual

Page of 1192
API Guide
601355 Rev A
Getting Started
1-11
Gett
ing Star
te
d
#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” );
}
}