03-13-2014 08:50 AM
Are there advantages of using fmt over sprintf in CVI code? On the surface, they appear to be very similar down to the interpretation of the format string. I understand that the sprintf format string allows for more options, but those aren't always necessary in my projects.
Solved! Go to Solution.
03-13-2014 09:07 AM
NI's recommendation is to use printf/scanf instead of Fmt/Scan, see the discussion here
03-13-2014 12:27 PM
03-13-2014 12:51 PM
This Wikipedia page documents it. See also it's many references.
http://en.wikipedia.org/wiki/Printf_format_string
03-14-2014 03:43 AM
As a side comment over Wolfgang note, look at the last comment by LuisG in the linked Idea exchange thread: Fmt/Scan are not to be considered obsolete or deprecated. It seems true, nevertheless, that no further addition is to be expected on these functions.
I am still using Scan sometimes in my programs as it appears to have a few more options than sscanf that are useful in some particular situations.