Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/23/04 06:22
Read: times


 
#74723 - RE: What do you doubt?
Responding to: ???'s previous message
hi,

If the source string contains a '%' you will find yourself in undefined behaviour land.

Could you explain, please? As I know, sprintf() has not "source string"; it is defined as:
int sprintf(buffer,format_string[,argument...]);
If you meant "If the format string contains a '%'" then there is nothing wrong with it: format string contains `%` often and often. If you meant that "If the argument contains a '%'" then there is nothing wrong with it as well - sometimes it may happen that %` is placed into argument which is string itself.

Regards,
Oleg

List of 19 messages in thread
TopicAuthorDate
doub about strutc pointers            01/01/70 00:00      
   RE: doub about strutc pointers            01/01/70 00:00      
   RE: doub about strutc pointers            01/01/70 00:00      
      What do you doubt?            01/01/70 00:00      
         RE: What do you doubt?            01/01/70 00:00      
            RE: What do you doubt?            01/01/70 00:00      
            RE: What do you doubt?            01/01/70 00:00      
               RE: What do you doubt?            01/01/70 00:00      
                  RE: What do you doubt?            01/01/70 00:00      
                  RE: What do you doubt?            01/01/70 00:00      
                     RE: What do you doubt?            01/01/70 00:00      
            RE: undefined behaviour land            01/01/70 00:00      
         RE: What do you doubt?            01/01/70 00:00      
         Still unknown doubt            01/01/70 00:00      
   RE: doub about strutc pointers            01/01/70 00:00      
      Nothing 8051-specific here            01/01/70 00:00      
         RE: Nothing 8051-specific here            01/01/70 00:00      
   RE: doub about strutc pointers            01/01/70 00:00      
   RE: doub about strutc pointers            01/01/70 00:00      

Back to Subject List