This is not the behaviour of printf().
It is the pointer arthematic you are doing.
the format string passed is "const char *" type and
when you add 3+"abcdef" like that the pointer is incremented. As it is a char pointer type it will be incremented by 3 chars. Hence...
Dear Morris,
Try declaring as follows in your module
Extract from MyModule.cpp
//----------------------------------------------------------
BOOL CDataPackageHandler::ExtractSymbolNameFromeObject(const CCATPACKET&
Packet)
{
// Old Code
// PACKET_FIELD *pPF = new PACKET_FIELD;
// New Code...
Hi Shilpa and Tom,
Try using the function, gettimeofday(). This obtains the current time, expressed as seconds and microseconds since 00:00 Coordinated Universal Time (UTC).
I think this will helpful than function time().
cheers,
Manjunath P S <p>P S Manjunath<br><a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.