Contact: aviboots(AT)netvision.net.il
43,920 questions
57,324 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 */