Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_FileEscapedString

This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 1.8.5

Write string into file with escaping.

Syntax

bool
JS_FileEscapedString(FILE *fp, JSString *str, char quote);
Name Type Description
fp FILE * A file pointer to write into.
str JSString * A string to write into the file.
quote char One of 0, single quote, and double quote.

Description

JS_FileEscapedString writes str into file fp escaping any non-printable or non-ASCII character. If quote is not 0, it must be a single or double quote character that will quote the output.

If successful, JS_FileEscapedString returns true, otherwise false.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai, fscholz, markg
 Last updated by: kscarfone,