pvjc26/du2/program.c

36 lines
665 B
C

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#define SIZE 128
int main() {
struct student {
char name[SIZE];
int votes;
};
//pomocne premeny
struct student databaza[SIZE];
memset(databaza,0,SIZE*sizeof(struct student));
int size = 0;
char meno[SIZE];
char line[SIZE];
memset(line,0,SIZE);
char* r = fgets(line,SIZE,stdin);
if (r == NULL)
{
printf("Chyba: Zlyhalo nacitavanie vstupu.\n");
}
char* end = NULL;
int value = strtol(line,&end,10);
if (value == 0){
// Premena sa nepodarila
}
return 0;
}