File: tostr.awk

package info (click to toggle)
sqlcipher 3.2.0-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 31,220 kB
  • sloc: ansic: 149,732; sh: 20,917; tcl: 11,236; makefile: 1,277; yacc: 1,081; awk: 268
file content (8 lines) | stat: -rw-r--r-- 106 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#!/usr/bin/awk
#
# Convert input text into a C string
#
{
  gsub(/\"/,"\\\"");
  print "\"" $0 "\\n\"";
}