add system program C rep
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/* 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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user