generated from admin/template
17 lines
318 B
C
17 lines
318 B
C
/* Type your code here, or load an example. */
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
// int main(void) {
|
|
// int a = 26;
|
|
// int b = 5;
|
|
// int c = a / b;
|
|
// return 0;
|
|
// }
|
|
unsigned short swap_bytes(unsigned short num) {
|
|
return ((num & 0x00FF) << 8) | ((num >> 8));
|
|
}
|
|
|
|
|
|
|