aadd3e4b3e4b4ecfc5a27067d6be2a1fa6bb6c88
[ossec-hids.git] / src / shared / tests / string_test.c
1 #include <stdio.h>
2 #include <string.h>
3 #include "string_op.h"
4
5
6 int main(int argc, char **argv)
7 {
8     int i = 0;
9     char *tmp;
10     char buf[] = "/var/www/html/Testing This Interface$%^&*().txt";
11     tmp = os_shell_escape(buf);
12     char clean[] = "/var/www/html/index.html";
13
14     printf("Sent: '%s'\n", buf);
15     printf("Fixed: '%s'\n", tmp);
16     free(tmp);
17
18     tmp = os_shell_escape(clean);
19     printf("Sent: '%s'\n", clean);
20     printf("Fixed: '%s'\n", tmp);
21
22
23     return(0);
24 }
25
26
27 /* EOF */