File: dump.5c

package info (click to toggle)
simhash 0.0.20110213-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 124 kB
  • ctags: 63
  • sloc: ansic: 680; sh: 20; makefile: 18
file content (18 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env nickle
# Copyright © 2005-2009 Bart Massey
# ALL RIGHTS RESERVED
# [This program is licensed under the "3-clause ('new') BSD License"]
# Please see the file COPYING in the source
# distribution of this software for license terms.

# hex-dump a shingleprint file

import File;

while(!end(stdin)) {
    int ch1 = getbyte();
    int ch2 = getbyte();
    int ch3 = getbyte();
    int ch4 = getbyte();
    printf("%02x%02x%02x%02x\n", ch1, ch2, ch3, ch4);
}