Displaying 1 result from an estimated 1 matches for "psmbpath".
2007 May 10
2
programming libsmbclient
...;%s", "test" );
    sprintf( pPassword, "%s", "test" );
}
int main(int argc, char * argv[]) 
{ 
    int             fd;
    int             ret;
    int             debug = 9;
    int             savedErrno;
    char            buffer[2048]; 
    char *          pSmbPath = NULL;
    if (argc == 2)
    {
        pSmbPath = argv[1];
    }
    else
    {
        printf("usage: "
               "%s [ smb://path/to/file ]\n",
               argv[0]);
        return 1;
    }
    smbc_init(get_auth_data_fn, debug); 
    
    printf("Open file %s...