diff options
author | Ren Kararou <[email protected]> | 2024-12-31 02:18:40 -0600 |
---|---|---|
committer | Ren Kararou <[email protected]> | 2024-12-31 02:18:40 -0600 |
commit | f6b4ac41eec72a25c703c63f43bd1104049a405c (patch) | |
tree | 6fc60798944ac010c22ede4e2e9e33d6b97d39e0 /src/netascii.c | |
parent | 810de0a90148d5dc7fe5919949220a00d14f6447 (diff) | |
download | nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.tar.gz nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.tar.bz2 nbtpd-f6b4ac41eec72a25c703c63f43bd1104049a405c.zip |
complete setup code; complete initial packet handling
Diffstat (limited to 'src/netascii.c')
-rw-r--r-- | src/netascii.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netascii.c b/src/netascii.c index 2180093..fb4d7b8 100644 --- a/src/netascii.c +++ b/src/netascii.c @@ -14,7 +14,7 @@ uint8_t is_netascii_char(char c) { /// WARNING! This function is NOT safe. Use only for strings you have already /// verified are NULL terminated! -uint8_t is_netascii_str(char* str) { +uint8_t is_netascii_str(char *str) { for (uint64_t i = 0; str[i] != 0; i++) { if (!is_netascii_char(str[i])) { return 0; @@ -29,7 +29,7 @@ uint8_t is_netascii_str(char* str) { return 1; } -uint8_t is_netascii_buf(char* buf, uint64_t len) { +uint8_t is_netascii_buf(char *buf, uint64_t len) { for (uint64_t i = 0; i < len; i++) { if (!is_netascii_char(buf[i])) { return 0; |