Write the result into the file
outfile instead of writing to stdout. With
outfile will be overwritten with the data from the input.
option, the resulting code is appended to the
output file, allowing multiple input files to be placed into one single source file.
Print a short usage message.
Just print out the version number and license information.
Write data as decimal numbers instead of using the default hexadecimal numbers.
Read files with MS-DOS mode (default is binary). This replaces "\r\n" with
"\n" when reading the resource file.
Write data as hexadecimal numbers (default).
Write data as a text string, with each byte represented as a hexadecimal
excape sequence, as in "\x33".
Note that the C or C++ compiler appends a nul-character at the end of the text string, thus making the data array one character longer than the file.
With the a option, printable ascii characters are passed unescaped, while special characters like tabs and newlines are given the usual escape codes.
Places the storage modifier
extern in front of the data array, ensuring
that the data array can be linked with other compilation units.
Normally, constant declarations are not visible in other compilation
Instead of generating an array definition only write a declaration, which
can be included as a header file.
This option causes reswrap to keep the file extension, replacing the "."
with an underscore "_".
Usage of this option is recommended as it reduces errors when using the
This option suppresses comments inserted by reswrap to indicate the
original file name from which the data statement was generated.
Prepend the given
prefix in front of the name of the resource; this may be used to generate class
names or namespace names in front of symbols.
Generate all declarations inside the given C++
namespace may be used to ensure that declarations are only accessible within the
given scope, and thus wont clash with symbols.
cols columns instead of the default number of columns in the data statements
generated by reswrap.
The default number of columns for decimal and hex printout is 16 characters;
the default for text string printout is 80 characters.
Instead of using a resource name based on the filename, reswrap substitutes
name for the resource name used in the declaration or definition for the following
resource file. This is useful if the filename can not be used as an identifier,
for example if the filename is a reserved word in C or C++, like "while".
When using the text string mode, please remember the C compiler appends one nul-character after the string, making the data array one element longer than the resource file.
This manpage was originally written by Torsten Landschoff (email@example.com) for the Debian distribution of the FOX Toolkit, and is currently maintained by Jeroen van der Zijp (firstname.lastname@example.org).
Copyright © 1997,2003 Jeroen van der Zijp.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The reswrap program is a part of the FOX GUI Toolkit. Further information about reswrap can be found at:
The FOX Toolkit website includes detailed information about reswrap and its use.
|The FOX C++ GUI Toolkit||RESWRAP (1)||May 2003|