Translation update done using Pootle.
[gammu.git] / tests / backup-comment.c
blob4704e02411fe1a1b43674736426fab8551e328d2
1 /**
2 * Simple test case for backup comments
3 */
5 #include "common.h"
6 #include <gammu.h>
7 #include <stdio.h>
9 extern GSM_Error SaveTextComment(FILE *file, unsigned char *comment);
11 int main(int argc UNUSED, char **argv UNUSED)
13 GSM_Error err;
14 unsigned char buf[2048];
15 const char src[] = "Text\n\nwith\n\rseveral\n\nnew\n\nlines.";
16 EncodeUnicode(buf, src, sizeof(src));
17 err = SaveTextComment(stdout, buf);
18 gammu_test_result(err, "SaveTextComment");
19 return 0;