1data2inc(1)            Binary to include file converter            data2inc(1)
2
3
4

NAME

6       data2inc - Free Pascal binary to pascal include file converter.
7
8

SYNOPSIS

10       data2inc [-ABSVH] msgfile [incfile] [constname]
11
12

DESCRIPTION

14       data2inc  reads a binary or text file and converts it to a pascal typed
15       constant declaration.  The constant is an  array  of  characters  (zero
16       based),  in which each character's ascii value is the value of the byte
17       at the offset index in the binary file. (index  is  the  index  in  the
18       array). If the input file is a text file, options will be read from the
19       file and an output file will be  generated  according  to  the  options
20       encountered.
21
22

USAGE

24       data2inc  with  the  -B option accepts a filename of a binary file, and
25       needs the name of an include file and  constant  name.  The  output  is
26       written  to incfile The name of the constant constname is mandatory for
27       a binary file.
28
29       data2inc without -B option takes the name of a message description file
30       as  input.  It  will  process  the message file and write the output as
31       described in the message file to incfile
32
33
34

OPTIONS

36       data2inc has a small number of options to control its behaviour:
37
38
39       -A     Write bytes instead of characters. The constant array will be an
40              array of byte instead of an array of char.
41
42       -B     If this option is given, the msgfile will be treated as a binary
43              file.
44
45       -H     emit a small helptext.
46
47       -S     data2inc will write the output as an array of strings,  or  a  2
48              dimensional array of characters.
49
50       -V     Show the version number and exit.
51
52

SEE ALSO

54              ppc386(1) bin2obj(1)
55
56
57
58Free Pascal                    12 November 2004                    data2inc(1)
Impressum