ZCMD and SSCANF question with strcmp
#8

Because, the 7 defines the specifier's length. Without this, sscanf should return an error when you attempt to use it. You don't need 128/256 because none of the options you provided have a character length of over 6. You ALWAYS add +1 to the string size to account for the null terminator.
Reply


Messages In This Thread
ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:24
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:32
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:34
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:36
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:41
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:57
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:07
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:11
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:22
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)