static struct option
options[] = {
+ { "help", 0, NULL, 'h' },
{ "list", 0, NULL, 'l' },
};
+static void
+usage(void)
+{
+ printf("Usage: errno [-l] [--list] [keyword]\n");
+}
+
+
int
main(int argc, char **argv)
{
break;
switch (c) {
+ case 'h':
+ usage();
+ return EXIT_SUCCESS;
+
case 'l':
mode = list_mode;
break;
</refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+ <variablelist>
+ <varlistentry>
+ <term><option>-l</option></term>
+ <term><option>--list</option></term>
+ <listitem>
+ <para>List all errno values.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
+ </refsect1>
+
<refsect1>
<title>AUTHOR</title>
Lars Wirzenius