From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Narayanan, Anita (CTS)" To: ecos-discuss@sources.redhat.com Subject: [ECOS] sprintf problem Date: Mon, 08 Jan 2001 22:40:00 -0000 Message-id: <8F1D166D08ACD41196EE00B0D020944B73EAB3@CTSINENTSXUB> X-SW-Source: 2001-01/msg00106.html 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