Groovy hepcat Christian S. Pedersen jived with All on 24 Jul 97 16:49:32!
Conversion of pointer.'s a cool scene. Dig it!
CSP> int* test()
CSP> {
CSP> int i=5;
CSP> return &i;
CSP> }
CSP> Why do I get a "Suspicious pointer conversion"-warning ? The functions
CSP> using this concept seems to work OK. Should I make them differently.
It could be because i is not a static variable, and will cease to
exist when the function exits. You should define i as static, then see
if you get the same warning from the compiler.
Wolvaen
... I've become the father of a breakfast! - Sylvester
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 33.6k (3:633/159)
|