Issue with SScanf and string
#2

I'm not sure why you're using the "z" specifier since it is deprecated, and you're not even specifying the string length next to it (example, z[15]). Also, you only have 1 parameter (with 3 options) and telling sscanf you need 4 parameters. Then, when you want to set the Note variable value you create a variable called string with 400 cells to insert a 200 cell string in it. That step is also unnecessary, you should just set Note value to tmp.

Try using the "s" sscanf specifier, remove the other 3 specifiers and specify the array size.
Reply


Messages In This Thread
Issue with SScanf and string - by justjamie - 26.08.2016, 14:23
Re: Issue with SScanf and string - by Marricio - 26.08.2016, 14:36
Re: Issue with SScanf and string - by DarkSkull - 26.08.2016, 14:37
Re: Issue with SScanf and string - by justjamie - 26.08.2016, 15:03
Re: Issue with SScanf and string - by Shinja - 26.08.2016, 15:06
Re: Issue with SScanf and string - by Marricio - 26.08.2016, 15:13
Re: Issue with SScanf and string - by justjamie - 26.08.2016, 15:16
Re: Issue with SScanf and string - by WhiteGhost - 26.08.2016, 15:18
Re: Issue with SScanf and string - by Stinged - 26.08.2016, 15:34
Re: Issue with SScanf and string - by Marricio - 26.08.2016, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)