notes/sandbox/sprintf.c
2023-04-22 00:41:54 -07:00

13 lines
227 B
C

/* https://www.tutorialspoint.com/c_standard_library/c_function_sprintf.htm */
#include <stdio.h>
#include <math.h>
int main() {
char str[80];
sprintf(str, "Value of Pi = %f", M_PI);
puts(str);
return(0);
}