SDLNet_FreePacket

Name

SDLNet_FreePacket -- free a UDP packet.

Synopsis

void SDLNet_FreePacket(UDPpacket *packet)

packet A pointer to the UDPpacket to be freed from memory.

Description

Free a UDPpacket from memory. Do not use this UDPpacket after this function is called on it.

Return Value

Returns: nothing, this always succeeds.

Example

// Free a UDPpacket
//UDPpacket *packet;

SDLNet_FreePacket(packet);
packet=NULL; //just to help you know that it is freed

See Also

SDLNet_AllocPacket, SDLNet_AllocPacketV, SDLNet_FreePacketV, SDLNet_ResizePacket, UDPpacket

SDLNet_FreePacket (last edited 2008-04-17 08:18:40 by localhost)