aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/11_file_info.c
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-09-24 22:05:02 +0800
committerJia Tan <jiat0218@gmail.com>2023-09-24 22:05:02 +0800
commitce162db07f03495bd333696e66883c8f36abdc1e (patch)
tree5b616e77943d6a232d5942dfe78deb7afe17d5b2 /doc/examples/11_file_info.c
parentlib: Silence -Wsign-conversion in getopt.c. (diff)
downloadxz-ce162db07f03495bd333696e66883c8f36abdc1e.tar.xz
Docs: Change quoting style from `...' to '...'.
These days the ` and ' do not look symmetric. This quoting style has been changed in various apps over the years including the GNU tools.
Diffstat (limited to '')
-rw-r--r--doc/examples/11_file_info.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/examples/11_file_info.c b/doc/examples/11_file_info.c
index 9e7b0c8e..1e2c25b1 100644
--- a/doc/examples/11_file_info.c
+++ b/doc/examples/11_file_info.c
@@ -33,7 +33,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
// large files on 32-bit systems (POSIX versions fseeko() and
// ftello() can support large files).
if (fseek(infile, 0, SEEK_END)) {
- fprintf(stderr, "Error seeking the file `%s': %s\n",
+ fprintf(stderr, "Error seeking the file '%s': %s\n",
filename, strerror(errno));
return false;
}
@@ -80,7 +80,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
if (ferror(infile)) {
fprintf(stderr,
- "Error reading from `%s': %s\n",
+ "Error reading from '%s': %s\n",
filename, strerror(errno));
return false;
}
@@ -104,7 +104,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
// switch fseeko() or lseek().
if (fseek(infile, (long)(strm->seek_pos), SEEK_SET)) {
fprintf(stderr, "Error seeking the "
- "file `%s': %s\n",
+ "file '%s': %s\n",
filename, strerror(errno));
return false;
}
@@ -133,24 +133,24 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
case LZMA_FORMAT_ERROR:
// .xz magic bytes weren't found.
- fprintf(stderr, "The file `%s' is not "
+ fprintf(stderr, "The file '%s' is not "
"in the .xz format\n", filename);
return false;
case LZMA_OPTIONS_ERROR:
- fprintf(stderr, "The file `%s' has .xz headers that "
+ fprintf(stderr, "The file '%s' has .xz headers that "
"are not supported by this liblzma "
"version\n", filename);
return false;
case LZMA_DATA_ERROR:
- fprintf(stderr, "The file `%s' is corrupt\n",
+ fprintf(stderr, "The file '%s' is corrupt\n",
filename);
return false;
case LZMA_MEM_ERROR:
fprintf(stderr, "Memory allocation failed when "
- "decoding the file `%s'\n", filename);
+ "decoding the file '%s'\n", filename);
return false;
// LZMA_MEMLIMIT_ERROR shouldn't happen because we used
@@ -183,7 +183,7 @@ main(int argc, char **argv)
FILE *infile = fopen(argv[i], "rb");
if (infile == NULL) {
- fprintf(stderr, "Cannot open the file `%s': %s\n",
+ fprintf(stderr, "Cannot open the file '%s': %s\n",
argv[i], strerror(errno));
success = false;
}