Sign in
android
/
platform
/
bionic.git
/
d06e2e7b29ec785b9c9143b98c04dd75286fc5d5
/
.
/
libc
/
upstream-openbsd
/
lib
/
libc
/
net
/
ntohs.c
blob: ef22ea306801ee845f25a4790457545be2f0392b [
file
] [
log
] [
blame
]
/* $OpenBSD: ntohs.c,v 1.10 2024/04/15 14:30:48 naddy Exp $ */
/*
* Public domain.
*/
#include
<sys/types.h>
#include
<endian.h>
#undef
ntohs
uint16_t
ntohs
(
uint16_t
x
)
{
return
be16toh
(
x
);
}