Hi..
I work on a function that takes a variable number of arguments. Down there is a code I currently have..
But how should I handle it, if joined data strlen would be more than the current buffer size (so 1023)?
Thanks a lot for helpCode:int st(char *text, ... ) { char buff[1024]; va_list ap; va_start(ap, text); vsprintf(buff, text, ap); va_end( ap ); printf(buff); return 0; }