public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Narayanan, Anita (CTS)" <Nanita@chn.cognizant.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] sprintf problem
Date: Mon, 08 Jan 2001 22:40:00 -0000	[thread overview]
Message-ID: <8F1D166D08ACD41196EE00B0D020944B73EAB3@CTSINENTSXUB> (raw)

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

             reply	other threads:[~2001-01-08 22:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 22:40 Narayanan, Anita (CTS) [this message]
2001-01-09 10:17 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8F1D166D08ACD41196EE00B0D020944B73EAB3@CTSINENTSXUB \
    --to=nanita@chn.cognizant.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).