SDL Wiki
(This function is part of SDL_net, a separate library from SDL.)


Compare two SDLNet_Address objects.


int SDLNet_CompareAddresses(const SDLNet_Address *a, const SDLNet_Address *b);

Function Parameters

a first address to compare.
b second address to compare.

Return Value

Returns -1 if a is "less than" b, 1 if "greater than", 0 if equal.


This compares two addresses, returning a value that is useful for qsort (or SDL_qsort).

Thread Safety

It is safe to call this function from any thread.


This function is available since SDL_Net 3.0.0.


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.