31 lines
537 B
C
31 lines
537 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;
|
|
};
|
|
|
|
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;
|
|
} |