]> The Tcpdump Group git mirrors - tcpdump/commitdiff
new tok2strbuf() API.
authormcr <mcr>
Thu, 29 Apr 2004 02:15:41 +0000 (02:15 +0000)
committermcr <mcr>
Thu, 29 Apr 2004 02:15:41 +0000 (02:15 +0000)
netdissect.h

index bc3fac0dd40ef2d3853ec373828ea6af84859100..a4e73b386c0a3b986d13ebcc30b937f7ec4077b4 100644 (file)
@@ -21,7 +21,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/netdissect.h,v 1.6 2004-04-23 19:03:39 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/netdissect.h,v 1.7 2004-04-29 02:15:41 mcr Exp $ (LBL)
  */
 
 #ifndef netdissect_h
@@ -67,6 +67,11 @@ struct tok {
        const char *s;          /* string */
 };
 
+#define TOKBUFSIZE 128
+extern const char *tok2strbuf(const struct tok *, const char *, int,
+                             char *buf, size_t bufsize);
+
+/* tok2str is deprecated */
 extern const char *tok2str(const struct tok *, const char *, int);
 extern char *bittok2str(const struct tok *, const char *, int);