Contact: aviboots(AT)netvision.net.il
40,760 questions
53,134 answers
573 users
#include <stdio.h> int main() { float f = 13.5; char s[32] = "c programming"; char buf[64] = ""; snprintf(buf, 64, "%s - %.2f", s, f); printf("%s\n", buf); return 0; } /* run c programming - 13.50 */