diff --git a/programs/develop/ktcc/trunk/samples/build_all.sh b/programs/develop/ktcc/trunk/samples/build_all.sh index 0b4aeab4d0..3a62bc78c4 100644 --- a/programs/develop/ktcc/trunk/samples/build_all.sh +++ b/programs/develop/ktcc/trunk/samples/build_all.sh @@ -3,5 +3,5 @@ ../tcc consoleio.c /kolibrios/develop/tcc/lib/libck.a -o consoleio ../tcc files.c /kolibrios/develop/tcc/lib/libck.a -o files ../tcc winbasics.c /kolibrios/develop/tcc/lib/libck.a -o winbasics -../tcc dynamic.c -lconsole -lhttp -linputbox +../tcc dynamic.c -lconsole -lhttp -linputbox -o dynamic exit \ No newline at end of file diff --git a/programs/develop/ktcc/trunk/samples/dynamic.c b/programs/develop/ktcc/trunk/samples/dynamic.c index c85f688c8d..be51992cb7 100644 --- a/programs/develop/ktcc/trunk/samples/dynamic.c +++ b/programs/develop/ktcc/trunk/samples/dynamic.c @@ -3,17 +3,18 @@ #include int main() { + con_write_asciiz("Wait, I'll ask you... when I'll done to fetch one site...\n"); con_set_title("Dynamicaly linked app"); - con_write_asciiz("Wait, I'll ask you... when I'll done to fetch one site"); - http_msg *h = get("http://boppan.org", 0, HTTP_FLAG_BLOCK, ""); + http_msg *h = get("http://example.com", 0, HTTP_FLAG_BLOCK, ""); if (!receive(h)) { - con_printf("%s\n", h->content_ptr); + con_printf("%s\n", h->content_ptr); } else { - con_write_asciiz("Danmit! Can't access to the page."); + con_write_asciiz("Oops! Can't access to the page.\n"); } char buffer[256]; - InputBox(buffer, "Hay!", "How do you do?", "Everything sucks", 0, 256, 0); - con_write_asciiz(buffer); + InputBox(buffer, "Hay!", "How do you do?", "Hmm?", 0, 256, 0); + con_printf("Your answer is \"%s\"\n", buffer); + con_write_string("It's surprising, isn't it?", 26); con_exit(0); return 0; }