add 203 codes

This commit is contained in:
2024-11-23 18:09:49 +01:00
parent 308085d03f
commit aae17bb238
6 changed files with 428 additions and 0 deletions

16
Blatt02/A203/util.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef UTIL_H
#define UTIL_H
#include <stdio.h>
#include "arp_packet_st.h"
#define TRUE 1
#define FALSE 0
void print_hex(uint8_t * array, size_t size);
void print_u16_hex(uint16_t number);
void print_u8_hex(uint8_t number);
uint16_t combine_uint8(uint8_t high, uint8_t low);
uint32_t combine_uint8_32(uint8_t * arr);
#endif