I want to convert two functions into a single macro in which the sprintf() will have varying arguments and the second function will have the fixed length of arguments
for eg:
1. sprintf(buff,"T he numbers are %u,%d, The text is %s", x,y,ch);
func((unsigned int *)buff,strlen(b uff), z);
2. sprintf(buff,"h ello");
func((unsigned int *)buff,strlen(b uff), z);
for eg:
1. sprintf(buff,"T he numbers are %u,%d, The text is %s", x,y,ch);
func((unsigned int *)buff,strlen(b uff), z);
2. sprintf(buff,"h ello");
func((unsigned int *)buff,strlen(b uff), z);
Comment