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

SDLNet_FreePacketV

Free a UDP packet vector (array of packets).

Header File

Defined in <SDL_net.h>

Syntax

void SDLNet_FreePacketV(UDPpacket **packetV);

Function Parameters

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

Remarks

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().

Version

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.