About 52 results
Open links in new tab
  1. Difference between fprintf, printf and sprintf? - Stack Overflow

    Jan 16, 2015 · Can anyone explain in simple English about the differences between printf, fprintf, and sprintf with examples? What stream is it in? I'm really confused between the three of these while …

  2. c - fprintf with string argument - Stack Overflow

    Jan 7, 2010 · In order to create a formatted file, I want to utilize fprintf. It must get char* parameters, but I have several string variables. How can I use fprintf?

  3. matlab - Difference between disp and fprintf - Stack Overflow

    Nov 1, 2018 · In Matlab, it seems to me that disp and fprintf commands both are very similar in that they both show to display what you tell it to. What is the difference between these 2 commands?

  4. How to use fprintf for writing data to a file - Stack Overflow

    May 20, 2011 · I want to write data from a C program to a file, so that Excel can read the file to plot a graph of the data. But I'm not sure of the exact syntax to use for fprintf. I have stdlib.h declared in th...

  5. c - Quais as diferenças entre printf, fprintf, sprintf, snprintf ...

    Sep 4, 2016 · Pesquisando notei que existem varias variações do printf, mas não entendi quais as diferenças e qual usar em determinada circunstância. Gostaria de saber a finalidade de cada um …

  6. c - Using fprintf instead of simple printf - Stack Overflow

    Sep 11, 2023 · Using fprintf instead of simple printf Asked 2 years, 4 months ago Modified 2 years, 4 months ago Viewed 117 times

  7. fprintf, error: format not a string literal and no format arguments ...

    Jun 23, 2013 · error: format not a string literal and no format arguments [-Werror=format-security but when I compiled that on other linux distributions (RedHat, Fedora, SUSE) that is compiled …

  8. c - fPrintf an integer - Stack Overflow

    Sep 23, 2013 · I am new to C and I am surprised that there is not straight forward function to achieve what I want. I am executing a program and need to write an integer value to a file. I have code …

  9. C++: how to get fprintf results as a std::string w/o sprintf

    Change the calls to fprintf () to sprintf () I wouldn't have to rewrite any format strings print () could be reimplemented as: fprint (f, this.to_str ()); But I would need to manually allocate char []s, merge a lot …

  10. How to use printf () and fprintf () simultaneously together

    Mar 29, 2022 · 1 I was learning about file i/o and stucked, that when i use fprintf () to print a string in a file and then read that string using fscanf () then instead of string it prints some garbage value in output.