Initial import
[samba] / testsuite / libsmbclient / src / init / init_2.c
diff --git a/testsuite/libsmbclient/src/init/init_2.c b/testsuite/libsmbclient/src/init/init_2.c
new file mode 100644 (file)
index 0000000..1201602
--- /dev/null
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+#include <libsmbclient.h>
+
+
+int main(int argc, char **argv )
+{
+       int err = -1;
+
+       if ( argc > 1 )
+       {
+               err = smbc_init(NULL, atoi(argv[1]));
+
+               if ( err < 0 )
+                       err = 1;
+
+       }
+
+       return err;
+
+}