cvs commit: src/usr.bin/file2c file2c.1 file2c.c

Jung-uk Kim jkim at
Fri Mar 23 00:00:23 UTC 2007

jkim        2007-03-23 00:00:22 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/file2c       file2c.1 file2c.c 
  Add '-s' option and update the manual page.  With this option, it prints
  little more style(9) friendly output.  For example:
  %file2c -n 8 -s -x 'const char data[] = {' '};' < /etc/motd
  const char data[] = {
          0x46, 0x72, 0x65, 0x65, 0x42, 0x53, 0x44, 0x20,
          0x37, 0x2e, 0x30, 0x2d, 0x43, 0x55, 0x52, 0x52,
          0x45, 0x4e, 0x54, 0x20, 0x28, 0x42, 0x45, 0x41,
          0x53, 0x54, 0x49, 0x45, 0x29, 0x20, 0x23, 0x30,
          0x3a, 0x20, 0x57, 0x65, 0x64, 0x20, 0x4d, 0x61,
          0x72, 0x20, 0x32, 0x31, 0x20, 0x31, 0x39, 0x3a,
          0x30, 0x34, 0x3a, 0x33, 0x36, 0x20, 0x45, 0x44,
          0x54, 0x20, 0x32, 0x30, 0x30, 0x37, 0x0a
  Revision  Changes    Path
  1.13      +10 -4     src/usr.bin/file2c/file2c.1
  1.10      +16 -3     src/usr.bin/file2c/file2c.c

More information about the cvs-src mailing list