repo.or.cz
/
sm64pc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #438 from s4Ys369/revert-434-patch-1
[sm64pc.git]
/
tools
/
zeroterm.py
blob
7675017aba351bd46e70a609197a8bde47811314
1
#!/usr/bin/env python3
2
import
sys
3
if
len
(
sys
.
argv
) <
2
:
4
print
(
"usage: zeroterm <string>"
)
5
else
:
6
sys
.
stdout
.
buffer
.
write
(
bytes
(
sys
.
argv
[
1
],
'ascii'
) +
b
'
\x00
'
)