diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-04 16:24:49 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-04 16:24:49 +0000 |
commit | a8952b3c7b1067f304e24237bd035263e6b62ed9 (patch) | |
tree | 5b9bbc59f59f38101e2bcd7a7d10cbd89a4e81ed /src/common/utils.h | |
parent | 65ee11a599f904bdece45c55dd41eb2633da575f (diff) | |
download | hercules-a8952b3c7b1067f304e24237bd035263e6b62ed9.tar.gz hercules-a8952b3c7b1067f304e24237bd035263e6b62ed9.tar.bz2 hercules-a8952b3c7b1067f304e24237bd035263e6b62ed9.tar.xz hercules-a8952b3c7b1067f304e24237bd035263e6b62ed9.zip |
Some all-around code reformatting/cleaning
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10947 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/utils.h')
-rw-r--r-- | src/common/utils.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/common/utils.h b/src/common/utils.h index 66ce04c99..898a63ab4 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -4,13 +4,11 @@ #ifndef _UTILS_H_ #define _UTILS_H_ +#include <stdio.h> #include <stdarg.h> -// Function that dumps the hex of the first num bytes of the buffer to the screen -//#define UTIL_DUMP -#ifdef UTIL_DUMP -void dump(const unsigned char* buffer, int num); -#endif +// generate a hex dump of the first 'length' bytes of 'buffer' +void dump(FILE* fp, const unsigned char* buffer, int length); struct StringBuf { char *buf_; |