Initialising variables in libraries

When using library scope variables, is it possible to initialise these automatically in the library code or do you need to create and run an initialisation function from the main C program?

Thanks