diff options
Diffstat (limited to 'man3/bswap.3')
-rw-r--r-- | man3/bswap.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/bswap.3 b/man3/bswap.3 index 41dad78ed..c142e956b 100644 --- a/man3/bswap.3 +++ b/man3/bswap.3 @@ -45,20 +45,20 @@ $ \fB./a.out 0x0123456789abcdef\fP #include <stdint.h> #include <stdio.h> #include <stdlib.h> - +\& int main(int argc, char *argv[]) { uint64_t x; - +\& if (argc != 2) { fprintf(stderr, "Usage: %s <num>\en", argv[0]); exit(EXIT_FAILURE); } - +\& x = strtoull(argv[1], NULL, 0); printf("%#" PRIx64 " ==> %#" PRIx64 "\en", x, bswap_64(x)); - +\& exit(EXIT_SUCCESS); } .EE |