Archive formats
TAR octal field encoder
Encode a nonnegative integer as a null-terminated POSIX octal field.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Convert to octal, pad with leading zero digits and append one null byte. The terminator is part of the selected width.
Decimal 512 becomes octal 1000, or 00000001000 followed by null in a 12-byte field.
Limits
POSIX octal form only. Values that need GNU/base-256 extension encoding are rejected.