lsflib/src/hexdump.c
author Markus Bröker <mbroeker@largo.localnet>
Thu, 16 Apr 2009 12:49:11 +0200
changeset 38 48f6f3918b82
parent 9 c3fecc82ade6
child 77 49e0babccb23
permissions -rw-r--r--
Project Split finished committer: Markus Bröker <mbroeker@largo.homelinux.org>

/**
 * test/demos/lsflib/src/hexdump.c
 * Copyright (C) 2008 Markus Broeker
 */

#include <stdio.h>

void hexdump (char *s, int len)
{
    int i;

    for (i = 0; i < len; i++) {
        printf ("%02X ", s[i]);
        if ((i % 40) == 0)
            printf ("\n");
    }
}