mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
20 lines
306 B
C
20 lines
306 B
C
#include "inet.h"
|
|
|
|
int inet_aton(const char *cp, struct in_addr *inp) {
|
|
inp->s_addr = inet_addr(cp);
|
|
|
|
if (inp->s_addr == INADDR_NONE) {
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|
|
/*
|
|
* Local variables:
|
|
* tab-width: 4
|
|
* c-basic-offset: 4
|
|
* End:
|
|
* vim600: sw=4 ts=4 fdm=marker
|
|
* vim<600: sw=4 ts=4
|
|
*/
|