Writing myself a little getaddrinfo replacement in the morning:
github.com/bagder/repladdrinfo
GitHub - bagder/repladdrinfo: A getaddrinfo drop-in replacement powered by c-ares
A getaddrinfo drop-in replacement powered by c-ares - bagder/repladdrinfoGitHub
Haelwenn /элвэн/
in reply to daniel:// stenberg:// • • •replace.h
is missing from the repo?daniel:// stenberg://
in reply to Haelwenn /элвэн/ • • •kiyo
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to kiyo • • •kiyo
in reply to daniel:// stenberg:// • • •Mihugo
in reply to daniel:// stenberg:// • • •I have forgotten more than I ever knew about C. Nevertheless I have two ?
1) why is namelen on line 104 not being set to null if it is null on the input? Perhaps malloc initializes memory but I don't recall that or perhaps there is something else of why it isn't used. I get the ptrs here confused especially since I have no clue how c-ares works.
2) really a style question. line 11. Any reason why it's own dot.h isn't last? It shouldn't matter. Perhaps one could argue it should be first
daniel:// stenberg://
in reply to Mihugo • • •@Mihugo 1) why would it need to change namelen? When name is cleared, namelen will get set to zero in the next loop (if there is any).
2) no reason, it doesn't matter to me