Discussion:
Lenguage question on porting to 64bit?
(too old to reply)
Omar Zelaya
2008-06-26 17:11:17 UTC
Permalink
Hi

Can some help... what is the diference on:

char* pruebaretorno(char* ptr); ///definition

char* msg;
msg = (char*)pruebaretorno("omar");

and this

char* msg;
msg = pruebaretorno("omar");

What is the diference between the 2 calls,

Thanks in advance

Omar Zelaya
Hendrik Schober
2008-06-26 17:19:22 UTC
Permalink
Post by Omar Zelaya
Hi
char* pruebaretorno(char* ptr); ///definition
char* msg;
msg = (char*)pruebaretorno("omar");
and this
char* msg;
msg = pruebaretorno("omar");
What is the diference between the 2 calls,
The first one is using an unnecessary call.
(BTW: Why don't you write it this
char* msg = pruebaretorno("omar");
way?)
Post by Omar Zelaya
Thanks in advance
Omar Zelaya
Schobi
Hendrik Schober
2008-06-26 17:20:56 UTC
Permalink
Post by Hendrik Schober
The first one is using an unnecessary call.
Damn. I meant an unnecessary _cast_. Sorry.

Schobi

Loading...