Position 0 refers to the first byte in the output string. If count refers to a position beyond the last byte stored so far, then null bytes will be placed in the unitialized locations and the cursor will be placed at the specified location. If count is omitted, then an error will be generated. This type does not consume an argument. The binary scan command parses fields from a binary string, returning the number of conversions performed.
String gives the input to be parsed and formatString indicates how to parse it.
As with binary format , the formatString consists of a sequence of zero or more field specifiers separated by zero or more spaces. Each field specifier is a single type char- acter followed by an optional numeric count . Most field specifiers consume one argument to obtain the variable into which the scanned values should be placed. The type charac- ter specifies how the binary data is to be interpreted. The count typically indicates how many items of the specified type are taken from the data.