high every one
what does extern to a function ??
=============================
xt( ){
void **rv;
int sv;
int *d;
//sv=rv;
d = malloc//bla bla bla ;
//*d=1120;
*rv=d;
}
main(){
xt();
}
=============================
execute:error Segmentation fault
actualy " *rv=d; " cause the seg fault but
when i had extern to the function
=============================
main(){
extern xt();
}
=============================
it's work
i understand what extern does with variables but not with functions
so if anyone can enlight me on this that would help
humm... if you think that i should go back read a programming book please do so ^^
what does extern to a function ??
=============================
xt( ){
void **rv;
int sv;
int *d;
//sv=rv;
d = malloc//bla bla bla ;
//*d=1120;
*rv=d;
}
main(){
xt();
}
=============================
execute:error Segmentation fault
actualy " *rv=d; " cause the seg fault but
when i had extern to the function
=============================
main(){
extern xt();
}
=============================
it's work
i understand what extern does with variables but not with functions
so if anyone can enlight me on this that would help
humm... if you think that i should go back read a programming book please do so ^^