Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CHAIN(3)	       MBK UTILITY STRUCTURE DEFINITIONS	      CHAIN(3)

NAME
       chain - mbk lisp-like service structure

DESCRIPTION
       The  chain is used for any purpose, when	a list of pointer is required.
       The use of this structure is strongly recommanded, when such a need oc-
       curs.

       The  declarations  needed  to work on chain are available in the	header
       file "/labo/include/mut315.h", where '315' is the actual	mbk version.

       The following C structure supports the description of the chain :
	      typedef struct chain {
		 struct	chain	  *NEXT;
		 void		  *DATA;
	      }	chain_list;

       NEXT		   Pointer to the next chain of	the list.

       DATA		   Generic pointer used	to point to any	 kind  of  ob-
			   ject. Do not	forget to cast the pointer back	to its
			   previous type when using this field.

       Remark :		   a specialized memory	allocator has  been  built  in
			   order  to create and	free chain_lists, so absolutly
			   avoid to create or free  them  an  other  way  than
			   through the access functions.

SEE ALSO
       mbk(1), addchain(3), freechain(3), delchain(3).

ASIM/LIP6			October	1, 1997			      CHAIN(3)

NAME | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=chain&sektion=3&manpath=FreeBSD+11.0-RELEASE+and+Ports>

home | help