percent-encode the query parts of a request too, not only the path.
[Rockbox.git] / firmware / test / snprintf / test.c
blob8923c9c9f5bb82412d5b3ae7f1193a9c1c227020
2 #include <stdio.h>
4 #include "sprintf.h"
6 int main(int argc, char **argv)
8 char buffer[256];
9 snprintf(buffer, 5, "123456789");
10 printf("%s\n", buffer);
11 snprintf(buffer, 6, "123456789");
12 printf("%s\n", buffer);
13 snprintf(buffer, 7, "123456789");
14 printf("%s\n", buffer);
15 snprintf(buffer, 7, "123%s", "mooooooooooo");
16 printf("%s\n", buffer);