|The subfield packet to use. If this parameter is NULL, the next subfield from the subfield packet previously scanned will be returned.|
A pointer to a subfield, if successful, or NULL if there are no more subfields in the packet.
s_JamSubPacket* SubPack_PS; s_JamSubfield* Subfield_PS; s_JamMsgHeader Header_S; int Result_I;
Result_I = JAM_ReadMsgHeader(0, &Header_S, &SubPack_PS); if (Result_I) printf("JAM_ReadMsgHeader returned %d.\n", Result_I);
for (Subfield_PS = JAM_GetSubfield(SubPack_PS); Subfield_PS; Subfield_PS = JAM_GetSubfield(NULL)) printf("Subfield id %d\n", Subfield_PS->LoID);
This function is not reentrant and should not be used in multi-threaded applications unless you know what you are doing.
Use JAM_GetSubfield_R(3) instead when a reentrant function is needed.
This manual page was created by Sir Raorn <firstname.lastname@example.org>, based on original JAMlib documentation by Bjorn Stenberg <email@example.com> and Johan Billing <firstname.lastname@example.org>.