Browse Source

imap-append.c: Fixed compilation errors on some platforms

In the initializer for len, there is no prototype for "strlen".
In this statement, there is no prototype for "memcpy".
Steve Holme 10 years ago
parent
commit
0c4589f0c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      docs/examples/imap-append.c

+ 1 - 0
docs/examples/imap-append.c

@@ -20,6 +20,7 @@
  *
  ***************************************************************************/
 #include <stdio.h>
+#include <string.h>
 #include <curl/curl.h>
 
 /* This is a simple example showing how to send mail using libcurl's IMAP