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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/22/02 08:17
Read: times


 
#26100 - RE: keil C51 pointer using error
If you register & log-in, you can use HTML and you'd be able to present your code in a readable layout:
void WriteString(char* str) 
{ 
   while(str){ 
      WR_DATA(*str); 
      str++; 
   }; 
}
Your while loop is testing the value of the pointer - you need to check the value that it is pointing to; ie, *str

BTW: the style issue of placing the braces { } is hotly debated but, whatever your views, it's usually best to stick to just one style! ;-)

List of 20 messages in thread
TopicAuthorDate
keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: // Andy            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: Subversives            01/01/70 00:00      
RE: Subversives            01/01/70 00:00      
RE: keil C51 pointer using error            01/01/70 00:00      
RE: Subversives            01/01/70 00:00      

Back to Subject List