diff options
author | Anton Kling <anton@kling.gg> | 2023-11-20 23:05:08 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-20 23:05:08 +0100 |
commit | c7cc762db3bee687f025cd085ebc48d5ba0f96c4 (patch) | |
tree | 02cb0c737001ef3f97865b2b23dec885ea0ed9dd /userland/libc/arpa/inet/ntohl.c | |
parent | 328aea599f93aa0020f65a68588f6205ab79691c (diff) |
LibC: Add ntohs and ntohl
Diffstat (limited to 'userland/libc/arpa/inet/ntohl.c')
-rw-r--r-- | userland/libc/arpa/inet/ntohl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/userland/libc/arpa/inet/ntohl.c b/userland/libc/arpa/inet/ntohl.c new file mode 100644 index 0000000..456819d --- /dev/null +++ b/userland/libc/arpa/inet/ntohl.c @@ -0,0 +1,5 @@ +#include <arpa/inet.h> +#include <endian.h> +#include <stdint.h> + +uint32_t ntohl(uint32_t nl) { return htonl(nl); } |