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


Free a UDP packet vector (array of packets).

Header File

Defined in <SDL_net.h>


void SDLNet_FreePacketV(UDPpacket **packetV);

Function Parameters

UDPpacket ** packetV the results of a call to SDLNet_AllocPacketV().


This frees the results of a previous call to SDLNet_AllocPacketV(), freeing both the set of packets and the array that holds them.

It is safe to free a NULL array through here; it's a harmless no-op.

You must not use this to free packets allocated through any function other than SDLNet_AllocPacketV().


This function is available since SDL_net 2.0.0.

See Also

CategoryAPI, CategoryAPIFunction

[ 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.