mirror of
https://github.com/CTCaer/CTCaer-TWRP.git
synced 2024-11-24 02:39:40 +00:00
9c754053b0
Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function
28 lines
543 B
C
28 lines
543 B
C
/*
|
|
** Copyright 2002 University of Illinois Board of Trustees
|
|
** Copyright 2002 Mark D. Roth
|
|
** All rights reserved.
|
|
**
|
|
** inet_aton.c - inet_aton() function for compatibility library
|
|
**
|
|
** Mark D. Roth <roth@uiuc.edu>
|
|
** Campus Information Technologies and Educational Services
|
|
** University of Illinois at Urbana-Champaign
|
|
*/
|
|
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
|
|
int
|
|
inet_aton(const char *cp, struct in_addr *inp)
|
|
{
|
|
inp->s_addr = inet_addr(cp);
|
|
if (inp->s_addr == -1)
|
|
return 0;
|
|
return 1;
|
|
}
|
|
|
|
|