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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/29/01 08:51
Read: times


 
#18193 - RE: RE:bruce this is the code
1. It's true that expression:
data=*v++;
it's the same thing as
data=*(v+1);

2, It wouldn't be fair to declare void disp_string(char *v) as
void disp_string(unsigned char *v), just because type of "ch" array is unsigned char ?

3. It's true that using a global where a local variable will do makes a function less general because it relies on something that must be defined outside itself ?
Thus, why use global variable as "data" is, and not relies on return type of function:
unsigned char disp_string(unsigned char *v)
return *v++;
Since the return is done through stack, that makes sense for 1KB stack reserved space of Dallas 80C390.
Cute, isn't !!!


Regards,
Silviu


List of 11 messages in thread
TopicAuthorDate
problem with stringdisplay on lcd            01/01/70 00:00      
RE: problem with stringdisplay on lcd            01/01/70 00:00      
RE: problem with stringdisplay on lcd            01/01/70 00:00      
RE:bruce this is the code            01/01/70 00:00      
RE: RE:bruce this is the code            01/01/70 00:00      
RE: RE:bruce this is the code            01/01/70 00:00      
RE: problem with stringdisplay on lcd            01/01/70 00:00      
RE: problem with stringdisplay on lcd            01/01/70 00:00      
RE: RE:bruce this is the code            01/01/70 00:00      
silviu : i am using spjsystems            01/01/70 00:00      
RE: silviu : i am using spjsystems            01/01/70 00:00      

Back to Subject List