2
Catlib Copyright Notice
4
The author of this software is Christopher Adam Telfer
5
Copyright (c) 1998, 1999, 2000, 2001, 2002
6
by Christopher Adam Telfer. All Rights Reserved.
8
Permission to use, copy, modify, and distribute this software for any
9
purpose without fee is hereby granted, provided that the above copyright
10
notice, this paragraph, and the following two paragraphs appear in all
11
copies, modifications, and distributions.
13
IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
14
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
15
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
16
THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
19
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20
PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF
21
ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". THE AUTHOR HAS NO
22
OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
34
Small letters: do not convert (not implemented for arrays and P)
35
Captial letters: convert from network byte order to host byte order
40
a - array (32-byte unsigned long + that many bytes)
41
c - signed 8 bit value
42
s - signed 16 bit value
43
l - signed 32 bit value
44
p - (unpack only) value is a pointer to a pointer. Generate the buffer
48
int EXTRACTOR_common_cat_pack(void * buf, const char *fmt, ... );
50
int EXTRACTOR_common_cat_unpack(const void * buf, const char *fmt, ... );
57
#endif /* __CAT_PACK_H */