Well, no, it wouldn't be sent. That's not how you use sscanf. sscanf reads formatted data from a string and stores it into variables according to a format string.
Thanks everybody the example I gave was not good.
What I'm actually trying to do is output to a parallel port (8 pins) on an ESP32 text that will contain variables.
I wrote a function to output text on that parallel port and it works fine.
Now I want to output text containing variables.
I was just using Serial.println() to simplify the question. Now realize it was an incorrect example.
Rephrasing the question how do I do something like:-
char buffer[64];
sscanf(buffer,"text string" + a variable number + more "text string");
int val = 1234;
char buffer[40];
sprintf(buffer, "text string %d more text string", val);
Serial.println(buffer); //prints: text string 1234 more text string