mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 02:49:29 +03:00
LibC: Add inet_aton, based on inet_pton
This commit is contained in:
parent
107c83bd42
commit
6c4fe69899
Notes:
sideshowbarker
2024-07-19 06:44:17 +09:00
Author: https://github.com/Jongy Commit: https://github.com/SerenityOS/serenity/commit/6c4fe698991 Pull-request: https://github.com/SerenityOS/serenity/pull/2184
@ -37,6 +37,11 @@ __BEGIN_DECLS
|
||||
const char* inet_ntop(int af, const void* src, char* dst, socklen_t);
|
||||
int inet_pton(int af, const char* src, void* dst);
|
||||
|
||||
static inline int inet_aton(const char *cp, struct in_addr *inp)
|
||||
{
|
||||
return inet_pton(AF_INET, cp, inp);
|
||||
}
|
||||
|
||||
char* inet_ntoa(struct in_addr);
|
||||
|
||||
inline uint16_t htons(uint16_t value)
|
||||
|
Loading…
Reference in New Issue
Block a user