Methinks it should be:
Code:void print(char* str) { printf("%s", str); }I am not an expert, but I would think that this is perfectly safe as the problem would be on input, not output.I mean can this fucntion be hacked somehow or can we give some input so that we can crash the program.





Reply With Quote