This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sprintf problem


"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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]