mirror of
https://github.com/eddyem/eddys_snippets.git
synced 2026-03-20 08:41:02 +03:00
add shared library template with examples subdirectory
This commit is contained in:
15
sharedlib_template/examples/helloworld.c
Normal file
15
sharedlib_template/examples/helloworld.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <locale.h>
|
||||
#include <libintl.h>
|
||||
#include <usefull_macros.h>
|
||||
|
||||
int main(){
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
#if defined GETTEXT_PACKAGE && defined LOCALEDIR
|
||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
|
||||
helloworld();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user