This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

thread-safty of sprintf


Hi
I use sprintf and see effects I do not understand. Quite often, the string returned from sprintf is "contaminated" in that it starts with an extra character - always a coma [,]. The rest of the string seems to be ok.


It does not help when I put a zero-character in string[0] prior to calling sprintf(string,....

Thread-safty could be an issue, because sprintf is used by user threads as well - but always with a string local to the calling routine.

What does this extra coma try to tell me? Thanks for help.
Robert

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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