in my header file there is a function which is called in main.
i want to call main in another file, how can do this?
You can't.
You should explain what you're trying to do.
Main's already called once to start the program. You shouldn't ever call it again, and if you do it's probably not very good practice.
thanks for you.
actually i have a multi-threded code, one of the threads runs a whole file (which is a header file)...that´s what i wanna do.