diff options
| Commit | 922694d1c64aec4419e9f472469eb32fb5e4f84e (patch) | |
|---|---|---|
| Author | 2023-12-07 10:50:19 +0200 | |
| Committer | 2023-12-07 10:50:19 +0200 | |
| Files | be9f8d2856cdcb9d5a32c9e1edd71fcb375330d8 /util.c | |
| pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.tar pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.tar.gz pico-web-922694d1c64aec4419e9f472469eb32fb5e4f84e.zip | ||
| Parent | d72624c9af98a6d0700aafb5988759d6736d65d0 (diff) | |
[all] Initial code concept
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)); +} |
