GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JAM_PUTSUBFIELD (3)

NAME

JAM_PutSubfield - Put a subfield into a subfield packet

CONTENTS

Synopsis
Description
     Arguments
Examples
Author
See Also

SYNOPSIS


#include <jamlib/jam.h> 

int JAM_PutSubfield(s_JamSubPacket* SubPack_PS, s_JamSubfield* Subfield_PS);

DESCRIPTION

Puts a subfield into a subfield packet. The subfield is copied before being put into the subfield packet.

    Arguments

SubPack_PS
  The subfield packet to add to
Subfield_PS
  The subfield to put in the packet

RETURN VALUE

0 if successful
JAM_NO_MEMORY
  if a memory allocation failed

EXAMPLES

s_JamSubPacket*   SubPacket_PS;
s_JamSubfield     Subfield_S;
uchar             Field_AC[64];

SubPacket_PS = JAM_NewSubPacket(); if (!SubPacket_PS) { printf("JAM_NewSubPacket returned NULL.\n"); return; }

/* set up subfield 1 */ strcpy(Field_AC, "This is field #1"); Subfield_S.LoID = JAMSFLD_SENDERNAME; Subfield_S.HiID = 0; Subfield_S.DatLen = strlen(Field_AC); Subfield_S.Buffer = Field_AC; JAM_PutSubfield(SubPacket_PS, &Subfield_S);

/* set up subfield 2 */ strcpy(Field_AC, "This is field #2"); Subfield_S.LoID = JAMSFLD_RECVRNAME; Subfield_S.HiID = 0; Subfield_S.DatLen = strlen(Field_AC); Subfield_S.Buffer = Field_AC; JAM_PutSubfield(SubPacket_PS, &Subfield_S);

JAM_DelSubPacket(SubPacket_PS);

AUTHOR

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

SEE ALSO

jamlib(3), JAM_GetSubfield(3), JAM_GetSubfield_R(3), JAM_NewSubPacket(3), JAM_DelSubPacket(3)
Search for    or go to Top of page |  Section 3 |  Main Index


JAM_PUTSUBFIELD (3) 2002-11-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.