Shoblade X
Shoblade X

Reputation: 383

Underscore before a C function parameter

I was looking through the source codes for the C CoreUtils, and I found this code that I don't recognize:

printf (_("Usage: %s [OPTION]...\n"), program_name);

Why is there an underscore before the format string? What does it do?

Upvotes: 4

Views: 131

Answers (1)

Usually (and conventionally in many, but not all, free software) _ is a #define-d macro for something like gettext(3), to ease internationalization & localization of software.

Upvotes: 6

Related Questions