hello everybody

i would like to know how to use stdout to print the result of a function

this is what i have

char input[51];
fgets(input,51,stdin);

stdout -> I don't know how to use it

Code:
void function() {
printf("result") }
i just can do it with printf

thanks