Displaying 1 result from an estimated 1 matches for "smbc_closedir".
2002 Nov 29
0
libsmbclient problem
...smburl );
if( handle < 0 ) {
perror( "smbc_opendir" );
return 1;
}
/* read dir contents */
errno = 0;
while( (dirp=smbc_readdir( handle )) != NULL ) {
printf( "%s\n", dirp->name );
}
if( errno != 0 ) {
perror( "smbc_readdir" );
smbc_closedir( handle );
return 1;
}
printf( "Done.\n" );
/* close dir */
smbc_closedir( handle );
return 0;
}