123
This commit is contained in:
parent
32c2ff46e8
commit
27f71d4fc9
@ -2,14 +2,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
int compare(const void *a, const void *b) {
|
||||
return strcmp(*(const char )a, *(const char )b);
|
||||
return strcmp(*(const char **)a, *(const char **)b);
|
||||
}
|
||||
int main() {
|
||||
int max;
|
||||
char name[50];
|
||||
char prihlasky = NULL;
|
||||
char **prihlasky = NULL;
|
||||
int counter = 0;
|
||||
prihlasky = (char )malloc(max * sizeof(char *));
|
||||
prihlasky = (char **)malloc(max * sizeof(char *));
|
||||
if (scanf("%d", &max) != 1 || max <= 0) {
|
||||
puts("Nespravny vstup");
|
||||
return 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user