mirror of
https://github.com/status-im/sqlcipher.git
synced 2025-02-23 17:28:17 +00:00
13 lines
243 B
Tcl
13 lines
243 B
Tcl
#!/usr/bin/tcl
|
|
#
|
|
# Convert input text into a C string
|
|
#
|
|
set in [open [lindex $argv 0] rb]
|
|
while {![eof $in]} {
|
|
set line [gets $in]
|
|
if {[eof $in]} break;
|
|
set x [string map "\\\\ \\\\\\\\ \\\" \\\\\"" $line]
|
|
puts "\"$x\\n\""
|
|
}
|
|
close $in
|