|
|
1.1 root 1: #include <stdio.h>
2:
3: main()
4: {
5: int word;
6:
7: printf("Enter an integer: \n");
8: scanf("%d", &word);
9: printf("The word is 0x%x\n", word);
10: swab(&word, &word, 2);
11: printf("The word with bytes swapped is 0x%x\n", word);
12: }
13:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.