mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
LibC: Add inet_aton, based on inet_pton
This commit is contained in:
parent
107c83bd42
commit
6c4fe69899
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue