fork download
  1. (* your code goes here *)
  2.  
  3. let a = "test\\n
  4. ";;
  5. let b = String.escaped a;;
  6. print_string "\n==============\n";;
  7. print_string (Scanf.unescaped b);;
Success #stdin #stdout 0s 4296KB
stdin
Standard input is empty
stdout
test\\n\n
==============
test\n