aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-06 09:47:06 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-11-06 09:47:06 +0000
commit3e04c18deb280cd878549959a2f11bd7b3f175c5 (patch)
tree27f48f416f5b38464f7f3e4ef81df888689acb79 /doc
parentceb68336b199f21e18f931fbaa1b7631b308eba9 (diff)
Warn people not to use the "numbered argument" feature that many UNIX
printf's implement. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8898 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/README.developer b/doc/README.developer
index 4a2d8ac4bb..0e8746f285 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -1,4 +1,4 @@
-$Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $
+$Id: README.developer,v 1.85 2003/11/06 09:47:06 guy Exp $
This file is a HOWTO for Ethereal developers. It describes how to start coding
a Ethereal protocol dissector and the use some of the important functions and
@@ -198,6 +198,18 @@ as to avoid collisions with other names - this might be more of an issue
on Windows, as it appears to #define names such as DELETE and
OPTIONAL.
+Don't use the "numbered argument" feature that many UNIX printf's
+implement, e.g.:
+
+ sprintf(add_string, " - (%1$d) (0x%1$04x)", value);
+
+as not all UNIX printf's implement it, and Windows printf doesn't appear
+to implement it. Use something like
+
+ sprintf(add_string, " - (%d) (0x%04x)", value, value);
+
+instead.
+
1.1.2 Name convention.
Ethereal uses the underscore_convention rather than the InterCapConvention for
@@ -235,7 +247,7 @@ code inside
is needed only if you are using the "snprintf()" function.
-The "$Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $"
+The "$Id: README.developer,v 1.85 2003/11/06 09:47:06 guy Exp $"
in the comment will be updated by CVS when the file is
checked in; it will allow the RCS "ident" command to report which
version of the file is currently checked out.
@@ -245,7 +257,7 @@ version of the file is currently checked out.
* Routines for PROTONAME dissection
* Copyright 2000, YOUR_NAME <YOUR_EMAIL_ADDRESS>
*
- * $Id: README.developer,v 1.84 2003/10/28 05:50:52 guy Exp $
+ * $Id: README.developer,v 1.85 2003/11/06 09:47:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>