Hm....
Interesting...
Never heard of such a thing...
~d

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Robert
Seczkowski
Sent: Friday, May 28, 2004 12:40 AM
To: [email protected]
Subject: [Mspgcc-users] pointer returning from function

I experienced problem when function, like 
int* Do_sth(int b){
static int like = 9;
return &like;
}
was called as:
 int* x;
x = Do_sth(int b);
When debuging, address x was returned 2 bytes higher what affected
another 
variable.
Has anyone has such case
-- 
Pozdrowienia
Robert Seczkowski
[email protected]
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

--
------------------------
 Jeszcze lepsza oferta AlphaNet
 - nowe serwery wirtualne
 - nowy sklep internetowy
 - nowy wirtualny administrator
 Sprawdz www.alpha.pl 
------------------------



Reply via email to