View Single Post
Re: Interesting Stripper2 problem, maybe someone can help?
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Interesting Stripper2 problem, maybe someone can help? - 27-09-2004

There must be a big buffer declared somewhere like this

char buffer[10000];

better do something like this

char *buffer;

buffer = (char *) malloc (min_size); // initialization

buffer = (char *) malloc (buffer, new_size); // reallocate each time you need the buffer to grow

free (buffer); // free the buffer when you don't need it anymore



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote