diff options
| author | Syndamia <kamen@syndamia.com> | 2023-12-07 10:50:19 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2023-12-07 10:50:19 +0200 |
| commit | 922694d1c64aec4419e9f472469eb32fb5e4f84e (patch) | |
| tree | be9f8d2856cdcb9d5a32c9e1edd71fcb375330d8 /util.c | |
| parent | d72624c9af98a6d0700aafb5988759d6736d65d0 (diff) | |
| download | pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.tar pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.tar.gz pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.zip | |
[all] Initial code concept
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)); +} |
