sm64ex-alo/tools/zeroterm.py
2020-08-08 14:03:20 -05:00

6 lines
167 B
Python

#!/usr/bin/env python3
import sys
if len(sys.argv) < 2:
print("usage: zeroterm <string>")
else:
sys.stdout.buffer.write(bytes(sys.argv[1], 'ascii') + b'\x00')