> snprintf(small, i, "%s", big);
Well yeah, when you lie about the size of the buffer, then it's gonna hurt you at some point.
Anyway, it will be the shell which prints segmentation fault, not...
Type: Posts; User: Salem
> snprintf(small, i, "%s", big);
Well yeah, when you lie about the size of the buffer, then it's gonna hurt you at some point.
Anyway, it will be the shell which prints segmentation fault, not...
http://forums.devshed.com/c-programming-42/system-output-587772.html
Your code still looks like some non-compilable pseudo-code you just typed out, rather than anything which you've run.
What's...