[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C programming: What does this construct in printf(_(" means?



shaulka@bezeqint.net wrote:

What does the construct

   _("What ever format string I use")

means in the context of printf?

For example:

[00:50:20 tmp]$ grep -C1 printf\(_\( util-linux-2.11b/misc-utils/script.c
                if (!strcmp(argv[1], "-V") || !strcmp(argv[1], "--version")) {
                        printf(_("%s from %s\n"),
                               progname, util_linux_version);
--
        if (!qflg)
                printf(_("Script started, file is %s\n"), fname);
        fixtty();
--
                if (!qflg)
                        printf(_("Script done, file is %s\n"), fname);
        }


My guess is that there might be a

#define _(String) gettext (String)

in the source somewhere. "info gettext" for more information



Reply to: