windows - sscanf skips capital 'N' letter -


I got a big letter sscanf problem in which the capital letter 'n' (maybe I am not right about something please understand me):

Example 1:

  Four seboys [128]; Sscanf ("GUIDNameNENE", "% * [GUIDName]% 127s", cBuff);  

Return cBuff: ENE

Example 2:

  Four cBuff [128]; Sscanf ("GUIDNamenENE", "% * [GUIDName]% 127s", cBuff);  

returns cBuff: nENE

Example 3:

  four cBuff [128]; Sscanf ("GUIDNaMENE", "% * [GUIDNa]% 127s", seabf); Return  cBuff: ENE  

I have tried many other forms but still leaves the Capital N always. where is the problem?

Thank you in advance!

% [GUIDName] is an exact string quoted and matched The odd way is that it will match which defines a set of characters. They will match in any order, and they will match again and again.

The longest match for the set is % [GUIDName] in your input GUIDNameN .

You sure % * [G]% * [U]% * [I]% * [D]% * [N]% * [a]% * [m]% * [E] and it will not eat any letter GUIDNAM , but it will still eat many e s.


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

file rename - Git : Not under version control fatal error -