[ECOS] sprintf problem

Jonathan Larmour jlarmour@redhat.com
Tue Jan 9 10:17:00 GMT 2001


"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


More information about the Ecos-discuss mailing list