]> Nishi Git Mirror - libw3.git/commitdiff
w3b
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 02:37:39 +0000 (02:37 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 02:37:39 +0000 (02:37 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@75 d27a3e52-49c5-7645-884c-6793ebffc270

Example/W3B/w3b.c

index d42f4542957c943be517c0411cea1e64bbf3226d..621099c445303fca381e67d89382de1eb08c0e5b 100644 (file)
@@ -43,6 +43,13 @@ int main(int argc, char** argv) {
                        switch(tolower(c)){
                                case 'q':
                                        goto exitnow;
+                               case 'o':
+                                       printf("URL: ");
+                                       fflush(stdout);
+                                       char* url = malloc(2049);
+                                       scanf("%s", url);
+                                       free(url);
+                                       break;
                                case '\n':
                                case '\r':
                                        break;