About 3,620,000 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. 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...

  3. 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?

  4. How can I print to standard error in C with 'printf'?

    Jun 22, 2023 · 1 You may know sprintf. It's basically the same thing with fprintf. The first argument is the destination (the file in the case of fprintf i.e. stderr), the second argument is the format string, and the …

  5. c - fprintf () on a new line of a file - Stack Overflow

    Mar 15, 2015 · How i can make a new line at the end of a file to fprintf () user inputed text? My code right now is this:

  6. c - Is fprintf () thread safe? - Stack Overflow

    Oct 22, 2020 · What I did see is the following: in Unix the fprintf is thread safe using the c++11 compiler the fprintf needs to be thread safe The reason I'm asking that is because this is a university …

  7. Correct format specifier for double in printf - Stack Overflow

    The same rules specified for fprintf apply for printf, sprintf and similar functions. 7.19.6.2 The fscanf function 11 The length modifiers and their meanings are: l (ell) Specifies that (...) that a following a, …

  8. 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?

  9. 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 …

  10. c - what's the difference between the printf and vprintf function ...

    I understand that the difference between the printf, fprintf, sprintf etc functions and the vprintf, vfprintf, vsprintf etc functions has to do with how they deal with the function arguments.