Add timeout to fgets() for later use

This commit is contained in:
jsteube
2018-09-01 13:19:29 +02:00
parent 52c52836e3
commit fd71da8ade
3 changed files with 57 additions and 8 deletions

View File

@@ -74,4 +74,7 @@ void hc_strncat (u8 *dst, u8 *src, const size_t n);
int count_char (const u8 *buf, const int len, const u8 c);
float get_entropy (const u8 *buf, const int len);
int select_read_timeout (int sockfd, const int sec);
int select_write_timeout (int sockfd, const int sec);
#endif // _SHARED_H