This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sprintf problem


hi!

Iam running an eCos code which uses sprintf() function with i386PC both as
the host as well as the target machine. 

There is no problem with the sprintf() function when i copy a const char.
for  eg. 
sprintf(buf,"TYPE");

But the code gives a segmentation violation error at the sprintf() function
whenever i try to copy a variable value into some buffer. 
for eg.
sprintf(buf,"%d TYPE", m_type);


Has anybody encountered such a problem with sprintf() function with i386 as
the target machine? If so, can you kindly help us to resolve the issue?

regards
anita


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

		Visit us at http://www.cognizant.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]