File: common.inc

package info (click to toggle)
haskell-network-info 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 116 kB
  • sloc: ansic: 221; haskell: 12; sh: 3; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
/* See https://github.com/jystic/network-info/issues/17 */

extern inline void ipv4copy(ipv4 *dst, struct sockaddr *addr);
extern inline void ipv6copy(ipv6 *dst, struct sockaddr *addr);
extern inline int wcsempty(const wchar_t *str);
extern inline void wszcopy(wchar_t *dst, const wchar_t *src, size_t dst_size);
extern inline void mbswszcopy(wchar_t *dst, const char *src, size_t dst_size);