#include <cat/cat.h>
#include <cat/log.h>
int catlog_loadspecfile(const char *filename, catlog_mklabelfunc *func);
The callback function func should behave in the same way as catlog_mklabel().
The message file should normally be the file for ``en_US''. It can be encoded as plain ASCII, UCS-2 (2-byte UNICODE, any byte order) or utf-8. In the last case, the first characters in the file must be ``#UTF''.
See elsfile for details of the ELS specification file format.
The function returns the number of labels successfully registered, or a negative code on error.