Pass arguments to the library .so

Hello,

Please, how can i pass arguments to my lib.so ? my lib.so is written in c and i need some arguments in the code ..
LD_PRELOAD=lib.so ./program

Thank you.

Library does not need any arguments. Maybe you need to pass the argument to a binary which uses that dynamic library (at runtime).
You can specify

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/path/to/lib.so

which will make the binary search in that path for .so file when it's launched

./program arg1 arg2