From: Niels Möller Date: Tue, 22 Apr 2003 19:44:24 +0000 (+0200) Subject: * nettle.texinfo (Example): Use @verbatiminclude to include the X-Git-Tag: nettle_1.8_release_20040110~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dfc66bf0a1d1a2f6f9ebbbfe2dd4eef81e8f612;p=thirdparty%2Fnettle.git * nettle.texinfo (Example): Use @verbatiminclude to include the example program. * sha-example.c: Example program, for inclusion in the manual. Rev: src/nettle/ChangeLog:1.190 Rev: src/nettle/nettle.texinfo:1.22 Rev: src/nettle/sha-example.c:1.1 --- diff --git a/ChangeLog b/ChangeLog index fb6e060f..6b939b6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-04-22 Niels Möller + + * nettle.texinfo (Example): Use @verbatiminclude to include the + example program. + + * sha-example.c: Example program, for inclusion in the manual. + 2003-04-14 Niels Möller * x86/aes-encrypt.asm (nettle_aes_encrypt): Fixed references to diff --git a/nettle.texinfo b/nettle.texinfo index eaca385a..7bb244d1 100644 --- a/nettle.texinfo +++ b/nettle.texinfo @@ -251,50 +251,7 @@ A simple example program that reads a file from standard in and writes its SHA1 checksum on standard output should give the flavor of Nettle. @example -/* FIXME: This code is untested. */ -#include -#include - -#include - -#define BUF_SIZE 1000 - -static void -display_hex(unsigned length, uint8_t *data) -@{ - static const char digits[16] = "0123456789abcdef"; - unsigned i; - - for (i = 0; i +#include + +#include + +#define BUF_SIZE 1000 + +static void +display_hex(unsigned length, uint8_t *data) +{ + static const char digits[16] = "0123456789abcdef"; + unsigned i; + + for (i = 0; i