Ugh!

Reply to self.  Maybe this will help someone in future:

    http://old.nabble.com/owcapi-td25259061.html

Namely: "OW_init also use *getopt* library (*getopt_long*) , so I needed to set optind = 0 after I finished my *getopt* job so it will be re initialized when the OW_init call will occurs"

This should be documented in the owcapi docs.

I will revise the docs and submit them for update.

/m



On 8/9/2011 18:15, Mark Richards wrote:
I note in OW_init(const char *params) the following:
    API_setup(opt_c);

opt_c is defined nowhere (that I can locate). I am guessing it is an library/internal global variable used by getopt.

Why and I concerned with this?

My application uses getopt and when I call my OW_init before my getopt the library works fine. Calling AFTER my getopt causes the library to fail to initialize. And this depends upon the number of parameters in my getopt.

What is opt_c?

Maybe API_setup() has something to do with this?


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to