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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/27/05 11:52
Read: times


 
#106003 - Bad!
Responding to: ???'s previous message
Anton Wijaya said:
Yes Sarang Patki i forgot to place Str++ in while loop on my post, but
I can assure that the printlcd function is just fine

Never re-type code into a post!
Always use cut-and-paste!

printlcd(0, strcat("Hello", " world"));
Only "Hello" word was displayed on the lcd display.

This should come as no surprise!
The "Hello" and "world" in your example are string constants; they cannot be modified - that's what "constant" means!


List of 9 messages in thread
TopicAuthorDate
Strings Manipulation in SDCC            01/01/70 00:00      
   Include ?            01/01/70 00:00      
      #include             01/01/70 00:00      
         Debug it!            01/01/70 00:00      
         check out Andy's doubt.            01/01/70 00:00      
            Hello World            01/01/70 00:00      
               Try this.            01/01/70 00:00      
               Bad!            01/01/70 00:00      
                  Clarify            01/01/70 00:00      

Back to Subject List