#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp (const void *a, const void *b) {
char *x = *(char **)a;
char *y = *(char **)b;
return (strlen(x) > strlen(y)) - (strlen(x) < strlen(y));
}
int is_pre (char *str1, char *str2) {
int res = ...