Skip to content

Instantly share code, notes, and snippets.

@0xTowel
Last active February 22, 2019 03:25
Show Gist options
  • Save 0xTowel/7ca8884d9d2a52b9b2c9fd915e65b852 to your computer and use it in GitHub Desktop.
Save 0xTowel/7ca8884d9d2a52b9b2c9fd915e65b852 to your computer and use it in GitHub Desktop.
A list of bytes which are considered whitespace in C and POSIX locales and terminate calls such as scanf("%s")

The following bytes are considered whitespace in C and POSIX locales:

0c0a0d090b20

They will end input to functions such as scanf("%s").

Byte Escape Sequence Name
0c \f form-feed
0a \n newline
0d \r carriage return
09 \t horizontal tab
0b \v vertical tab
20 space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment