Skip to Content.
Sympa Menu

freetds - Re: [freetds] new functionality

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] new functionality
  • Date: Sat, 20 Jan 2007 15:51:34 -0500

ZIGLIO, Frediano, VF-IT wrote:
> in t0001 there is something strange
>
> if (argc > 1) {
> printf("server and login timeout overrides (%s and %s) detected\n",
> argv[0], argv[1]);
> strcpy(SERVER, argv[0]);
> i = atoi(argv[1]);
> if (i) {
> i = dbsetlogintime(i);
> printf("dbsetlogintime returned %s.\n", (i == SUCCEED)? "SUCCEED" :
> "FAIL");
> }
> }
>
> argv[0] should be t0001 not first program argument.

Each time getopt(3) finds an option, argv is incremented.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page