Questions tagged [inet-ntop]

18 questions
0
votes
1 answer

inet_ntop and IPv6 addresses and PHP 5.5

I have an error with PHP 5.5 that does not occured with PHP5.3 and 5.4. With IPv6 addresses, the function inet_ntop() throws me an error: Invalid in_addr value. You can look at my work on Github (function is in Network.php, line 88). You can also…
Spomky-Labs
  • 15,473
  • 5
  • 40
  • 64
0
votes
1 answer

Comparison between pointer and integer when using inet_ntop in c

From the "man" pages it looks like inet_ntop returns a string (const char*) which should be alright when comparing to NULL. However, in my program I get a compiler warning at the first line in this code block that says: warning: comparison between…
Matt Vaughan
  • 1,135
  • 2
  • 13
  • 19
-1
votes
3 answers

C: inet_ntop return value position?

I am reviewing the inet_ntop documentation. Typically, string builder operations in C return either a pointer to the end of the string, or an integer indicating the length of the string written. The documentation of inet_ntop states quite…
Chris
  • 28,822
  • 27
  • 83
  • 158
1
2