diff options
1 files changed, 7 insertions, 0 deletions
| -rw-r--r-- | util.c | 7 |
@@ -0,0 +1,7 @@ +#include <util.h> +#include <arpa/inet.h> +#include <stdlib.h> + +uint16_t inet_atop(const char *port) { + return htons(atoi(port)); +} |
![]() |
index : FMI/pico-web | |
| [MIRROR] Year 3 project; Client-server markdown-based browser, made for a FMI course and elective |
| Website Summary Files Commits Branches @commit @diff @stats |
| -rw-r--r-- | util.c | 7 |
@@ -0,0 +1,7 @@ +#include <util.h> +#include <arpa/inet.h> +#include <stdlib.h> + +uint16_t inet_atop(const char *port) { + return htons(atoi(port)); +} |