[BACK]Return to file2c.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / file2c

Diff for /src/usr.bin/file2c/Attic/file2c.1 between version 1.6 and 1.7

version 1.6, 1999/07/04 11:53:54 version 1.7, 2000/03/07 21:11:08
Line 20 
Line 20 
 .Sh DESCRIPTION  .Sh DESCRIPTION
 The  The
 .Nm  .Nm
 utility reads a file from stdin and writes it to stdout, converting each  utility reads a file from the standard input and writes it to the standard
   output, converting each
 byte to its decimal representation on the fly.  byte to its decimal representation on the fly.
 .Pp  .Pp
 If the first  If the first
 .Op string  .Ar string
 is present, it is printed before the data. If the second  is present, it is printed before the data.
 .Op string  If the second
   .Ar string
 is present, it is printed after the data.  is present, it is printed after the data.
 .Pp  .Pp
 This program is used to embed binary or other files into C source files,  This program is used to embed binary or other files into C source files,
 for instance as a char[].  for instance as a
 .Sh EXAMPLE  .Li char[] .
   .Sh EXAMPLES
 The command:  The command:
 .Bd -literal -offset indent  .Bd -literal -offset indent
 date | file2c 'const char date[] = {' ',0};'  date | file2c 'const char date[] = {' ',0};'
Line 44 
Line 47 
 32,80,83,84,32,49,57,57,53,10  32,80,83,84,32,49,57,57,53,10
 ,0};  ,0};
 .Ed  .Ed
   .Sh SEE ALSO
   .Xr hexdump 1 ,
   .Xr od 1

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7