]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/if_nameindex.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / if_nameindex.3
index 196c495587fd2d1428ad2f46c06fa1827e82d0b8..aba6421b6a189434ac1839b8e77218a35e6cc643 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH IF_NAMEINDEX 3 2017-09-15 "GNU" "Linux Programmer's Manual"
+.TH IF_NAMEINDEX 3 2019-03-06 "GNU" "Linux Programmer's Manual"
 .SH NAME
 if_nameindex, if_freenameindex \- get network interface names and indexes
 .SH SYNOPSIS
@@ -120,7 +120,7 @@ T}  Thread safety   MT-Safe
 POSIX.1-2001, POSIX.1-2008, RFC\ 3493.
 .PP
 This function first appeared in BSDi.
-.SH EXAMPLE
+.SH EXAMPLES
 The program below demonstrates the use of the functions described
 on this page.
 An example of the output this program might produce is the following:
@@ -152,7 +152,7 @@ main(int argc, char *argv[])
     }
 
     for (i = if_ni; ! (i\->if_index == 0 && i\->if_name == NULL); i++)
-        printf("%u: %s\\n", i\->if_index, i\->if_name);
+        printf("%u: %s\en", i\->if_index, i\->if_name);
 
     if_freenameindex(if_ni);