D
David d'Angers
hi group
the following lines are taken from basename.c of the linux coreutil
group of programs
i don't understand the meaning of several of the functions:
initialize_main (&argc, &argv); why initialize main ?
atexit (close_stdout); when do we need to do a close stdout ?
setlocale (LC_ALL, ""); why do we care about locale ?
bindtextdomain (PACKAGE, LOCALEDIR); ??
textdomain (PACKAGE); ??
btw: the coreutils are application level programs yet it seems to have
many elements only found in system level programs (a total newbie's
comment), and i find it quite hard to read and learn
int
main (int argc, char **argv)
{
char *name;
initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
atexit (close_stdout);
the following lines are taken from basename.c of the linux coreutil
group of programs
i don't understand the meaning of several of the functions:
initialize_main (&argc, &argv); why initialize main ?
atexit (close_stdout); when do we need to do a close stdout ?
setlocale (LC_ALL, ""); why do we care about locale ?
bindtextdomain (PACKAGE, LOCALEDIR); ??
textdomain (PACKAGE); ??
btw: the coreutils are application level programs yet it seems to have
many elements only found in system level programs (a total newbie's
comment), and i find it quite hard to read and learn
int
main (int argc, char **argv)
{
char *name;
initialize_main (&argc, &argv);
program_name = argv[0];
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
atexit (close_stdout);