file2c man page on MirBSD

Man page or keyword search:  
man Server   6113 pages
apropos Keyword Search (all sections)
Output format
MirBSD logo
[printable version]

FILE2C(1)		     BSD Reference Manual		     FILE2C(1)

NAME
     file2c - convert file to c-source

SYNOPSIS
     file2c [string] [string]

DESCRIPTION
     The file2c 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.

     If the first string is present, it is printed before the data. If the
     second string is present, it is printed after the data.

     This program is used to embed binary or other files into C source files,
     for instance as a char[].

EXAMPLES
     The command:

	   $ date | file2c 'const char date[] = {' ',0};'

     will produce:

	   const char date[] = {
	   83,97,116,32,74,97,110,32,50,56,32,49,54,58,50,56,58,48,53,
	   32,80,83,84,32,49,57,57,53,10
	   ,0};

SEE ALSO
     hexdump(1), od(1)

MirOS BSD #10-current	       January 28, 1995				     1
[top]

List of man pages available for MirBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net