#include #include #define WORDMAX 80 int compchar( char *elem1, char *elem2 ); void main(int argc, char **argv) { char rec[WORDMAX], sig[WORDMAX], a; int min, max, leng; if( argc == 1 ) { printf("Poziv: anagram1 = min && leng <= max ) { strcpy(sig, rec ); qsort( sig, strlen(sig), 1, compchar ); if( sig[0] == a ) printf("%s %s\n", sig, rec ); } } } int compchar( char *elem1, char *elem2 ) { if( *elem1 > *elem2 ) return 1; else if( *elem1 < *elem2 ) return -1; else return 0; }