CodeBase - Print for DarkSDK
Return to the CodeBase listing
Category: Complete Applications
Version: 1.0
Information
Uploaded: 23rd May 2006 04:40
Modified: 1st Jan 1970 01:00
Author: Smoke sheath
Summary
A Print routine that works like printf , and mem dump routine both for for DarkSDK
Full Description
NB Please note you will have to separate out myPrint.h and myPrint.cpp<br /> <br /> myPrint function works like printf. There is no absolute error checking so make sure that the number of values you require is met by the number of variables. It does not dbSunc() so you will need to ensure there is one in your code (i would be surprised if there wasnt)<br /> use:<br /> %i for int<br /> %d for double<br /> %f for float<br /> %l for long<br /> %x for hex<br /> %s for string<br /> <br /> i.e:<br /> myPrint("Player pos (%f, %f, %f)", p.x, p.y, p.z);<br /> <br /> also accepts:<br /> \n for newline and<br /> \t for tab<br /> <br /> <br /> myDump(long addr, int nBytes) will display a dump of nBytes from address addr - a small but invaluable tool
Comments
No comments yet.