void incr(unsignedshort x,...){
va_list arguments;
registerunsignedchar *cur_arg;
va_start(arguments,x);
do{
cur_arg=va_arg(arguments,unsignedchar*);
for(registerunsigned y = 0;cur_arg[y]!='\0';++y,++cam){
if (cam+1>=tam) alloc();
p [cam] = cur_arg[y];
}
}while(--x);
va_end(arguments);
};
incr() performs what a string::operator+=() does, only processing all the arguments at once.
My question is, would it be faster to use a va_list in the case of adding
strings, instead of an overloaded operator?
With an overloaded operator you would need to enter, re-enter functions all the time, would it be better to just keep the process inside one function, but with the downside of using a va_list?
EDIT: I am quite ignorant as to 'how' a va_list works, i only know how to use it.