From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: "Narayanan, Anita (CTS)" Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] sprintf problem Date: Tue, 09 Jan 2001 10:17:00 -0000 Message-id: <3A5B55A3.30068A4C@redhat.com> References: <8F1D166D08ACD41196EE00B0D020944B73EAB3@CTSINENTSXUB> X-SW-Source: 2001-01/msg00127.html "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