summaryrefslogtreecommitdiff
path: root/examples/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example.c')
-rw-r--r--examples/example.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/example.c b/examples/example.c
index bd093b1..4dbd91c 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -1,5 +1,6 @@
/* example.c --- Example code showing how to use stringprep().
- * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+ * 2011 Simon Josefsson
*
* This file is part of GNU Libidn.
*
@@ -51,7 +52,7 @@ main (void)
fflush (stdout);
fgets (buf, BUFSIZ, stdin);
- printf ("Before locale2utf8 (length %d): ", strlen (buf));
+ printf ("Before locale2utf8 (length %ld): ", strlen (buf));
for (i = 0; i < strlen (buf); i++)
printf ("%02x ", buf[i] & 0xFF);
printf ("\n");
@@ -65,7 +66,7 @@ main (void)
else
printf ("Could not convert string to UTF-8, continuing anyway...\n");
- printf ("Before stringprep (length %d): ", strlen (buf));
+ printf ("Before stringprep (length %ld): ", strlen (buf));
for (i = 0; i < strlen (buf); i++)
printf ("%02x ", buf[i] & 0xFF);
printf ("\n");
@@ -75,7 +76,7 @@ main (void)
printf ("Stringprep failed (%d): %s\n", rc, stringprep_strerror (rc));
else
{
- printf ("After stringprep (length %d): ", strlen (buf));
+ printf ("After stringprep (length %ld): ", strlen (buf));
for (i = 0; i < strlen (buf); i++)
printf ("%02x ", buf[i] & 0xFF);
printf ("\n");