two methods,
1: easy
Code:
#include <stdio.h>
char buf[MAX_OUTPUT_LENGTH];
sprintf(buf,"hello %s",paninaro);
outtext(buf);
or
2: easy
i dont know what outtext() returns so change accordingly
Code:
#include <stdarg.h>
#define MAX_OUTPUT_LENGTH 256
int out(char* s,...)
{
char buf[MAX_OUTPUT_LENGTH];
va_list list;
va_start(list,s);
vsnprintf(buf,MAX_OUTPUT_LENGTH,s,list);
va_end(list);
return outtext(buf);
}
int main(void)
{
// code...
out("woo %d",100);
// ...code
}
output:
------------------------------
woo 100