summaryrefslogtreecommitdiff
path: root/429/word.c
diff options
context:
space:
mode:
Diffstat (limited to '429/word.c')
-rw-r--r--429/word.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/429/word.c b/429/word.c
deleted file mode 100644
index f8363aa..0000000
--- a/429/word.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-int main(){
- int tc;
- char *word = malloc(10);
- size_t st = 10;
- scanf("%d", &tc);
- while(tc--){
- getline(&word, &st, stdin); /* blank line after tc number */
- char dict[200][10];
- int i = 0;
-
- getline(&word, &st, stdin);
- while(word[0]!='*'){
- memcpy(dict[i++], word, st);
- getline(&word, &st, stdin);
- }
- int j=0;
- for(;j<i; j++){
- printf("%s", dict[j]);
- }
- }
-}