[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 3.5.3 SDLNet_FreePacket

`void SDLNet_FreePacket(UDPpacket *packet)`

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

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

Returns: nothing, this always succeeds.

    // Free a UDPpacket
    //UDPpacket *packet;

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

See Also:
3.5.1 SDLNet_AllocPacket, 3.5.4 SDLNet_AllocPacketV, 3.5.5 SDLNet_FreePacketV, 3.5.2 SDLNet_ResizePacket, 4.4 UDPpacket

This document was generated on November, 3 2009 using texi2html