=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file2c/Attic/file2c.1,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- src/usr.bin/file2c/Attic/file2c.1 1999/07/04 11:53:54 1.6 +++ src/usr.bin/file2c/Attic/file2c.1 2000/03/07 21:11:08 1.7 @@ -5,7 +5,7 @@ .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp .\" --------------------------------------------------------------------------- .\" -.\" $Id: file2c.1,v 1.6 1999/07/04 11:53:54 aaron Exp $ +.\" $Id: file2c.1,v 1.7 2000/03/07 21:11:08 aaron Exp $ .\" .Dd January 28, 1995 .Dt FILE2C 1 @@ -20,18 +20,21 @@ .Sh DESCRIPTION The .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. .Pp If the first -.Op string -is present, it is printed before the data. If the second -.Op string +.Ar string +is present, it is printed before the data. +If the second +.Ar string is present, it is printed after the data. .Pp This program is used to embed binary or other files into C source files, -for instance as a char[]. -.Sh EXAMPLE +for instance as a +.Li char[] . +.Sh EXAMPLES The command: .Bd -literal -offset indent date | file2c 'const char date[] = {' ',0};' @@ -44,5 +47,6 @@ 32,80,83,84,32,49,57,57,53,10 ,0}; .Ed - - +.Sh SEE ALSO +.Xr hexdump 1 , +.Xr od 1