JAM_DelSubPacket - Delete a subfield packet
#include <jamlib/jam.h>
int JAM_DelSubPacket(s_JamSubPacket* SubPack_PS);
Frees all memory used by a subfield packet. All subfields in the packet will be
lost and the packet handle will not be valid any more.
- SubPack_PS
- The subfield packet to delete
- 0
- if successful
- JAM_BAD_PARAM
- if SubPack_PS is NULL.
s_JamSubPacket* SubPacket_PS;
SubPacket_PS = JAM_NewSubPacket();
if (!SubPacket_PS) {
printf("JAM_NewSubPacket returned NULL.\n");
return;
}
SubPacket_PS = JAM_DelSubPacket();
if (!SubPacket_PS) {
printf("JAM_DelSubPacket returned NULL.\n");
return;
}
This manual page was created by Sir Raorn <raorn@altlinux.ru>, based on
original JAMlib documentation by Bjorn Stenberg <bjorn@haxx.nu> and
Johan Billing <billing@df.lth.se>.
jamlib(3), JAM_NewSubPacket(3), JAM_GetSubfield(3),
JAM_GetSubfield_R(3), JAM_PutSubfield(3)