Next: , Previous: , Up: Preparation   [Contents][Index]


5.1.2 Initialization

‘Libshishi’ must be initialized before it can be used. The library is initialized by calling shishi_init (see Initialization Functions). The resources allocated by the initialization process can be released if the application no longer has a need to call ‘Libshishi’ functions, this is done by calling shishi_done.

In order to take advantage of the internationalisation features in ‘Libshishi’, such as translated error messages, the application must set the current locale using setlocale before initializing ‘Libshishi’.