V
vinayby
hi all,
two doubts
1) in this code.. one might pass FUNC(x) definition externally..
#ifdef FUNC(x)
double fnew(double x){
return FUNC(x);
}
#endif
but i get a warning..(things work nice though)
=>warning: extra tokens at end of #ifdef directive
why is it so.. and how can one get rid of this..
2) I was wondering if it was possible to change argv[0] during
runtime.. so that
he process table show the newname rather than say "a.out"
OR is it OSdependent
PS:.. c.l.c is cool !
two doubts
1) in this code.. one might pass FUNC(x) definition externally..
#ifdef FUNC(x)
double fnew(double x){
return FUNC(x);
}
#endif
but i get a warning..(things work nice though)
=>warning: extra tokens at end of #ifdef directive
why is it so.. and how can one get rid of this..
2) I was wondering if it was possible to change argv[0] during
runtime.. so that
he process table show the newname rather than say "a.out"
OR is it OSdependent
PS:.. c.l.c is cool !