This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: sprintf problem
- To: "Narayanan, Anita (CTS)" <Nanita at chn dot cognizant dot com>
- Subject: Re: [ECOS] sprintf problem
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 09 Jan 2001 18:17:07 +0000
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <8F1D166D08ACD41196EE00B0D020944B73EAB3@CTSINENTSXUB>
"Narayanan, Anita (CTS)" wrote:
> 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?
I haven't. What happens if you run the eCos tests sprintf1 and sprintf2?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine