NET_CompareAddresses - Man Page

Compare two NET_Address objects.

Synopsis

#include <SDL3_net/SDL_net.h>

int NET_CompareAddresses(const NET_Address *a, const NET_Address *b);

Description

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

Function Parameters

a

first address to compare.

b

second address to compare.

Return Value

Returns a value less than zero if a is "less than" b, a value greater than zero if "greater than", zero if equal.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL_net 3.0.0.

Referenced By

NET_Address.3type(3).

SDL_net 3.2.0 SDL_net3 FUNCTIONS