I want to skip command arguments in the initialization section of a library. The init section of the library is:

```
static void pa_init_services (void) __attribute__((constructor (102)));
static void pa_init_services()

```

IE, it gets executed before the main() call inside the program. I want to implement what I'll call "tear off" arguments, that is to say I want to look at the front of the arguments, check if the argument pertains to my library, then parse those options just for my library, then remove them from the list before main() gets them. I don't control what program contains the main(), this is for a general purpose library that gets linked in to the client program.

If, for example, I can actually get access to the argv POINTER, and actual argc location, then I can do the parse and skip procedure simply.

This procedure is mentioned (for example) in the GTK documentation, GTK parses options specific to it, and skips them before the client program gets them.