Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

krmaet / Lennubroneerimis_tarkvara

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Pipelines
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit a2152ecc authored 2 years ago by karade's avatar karade
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Upload New File

parent 402ad611
Show whitespace changes
Inline Side-by-side
Showing with 38 additions and 0 deletions
  • generator.h
generator.h 0 → 100644
View file @ a2152ecc
/**
* File: generator.h
* Author: Risto Heinsar
* Created: 12.03.2015
* Modified 12.03.2023
*
* Description: Header file to provide the name pools required for the task.
*/
#ifndef GENERATOR_H
#define GENERATOR_H
#define NAME_MAX 40
#define DOB_MAX 20
#define STR_MAX 128
#define SEAT_MAX 5
#define SEATS 72
#define DOC_MAX 10
typedef struct{
char documentNum[DOC_MAX];
char fName[NAME_MAX];
char lName[NAME_MAX];
char dateOfBirth[DOB_MAX];
char email[STR_MAX];
char residency[STR_MAX];
bool checkedIn;
char seat[SEAT_MAX];
int luggageClass;
}users;
int GetRand(int numMin, int numMax);
void GenNames(users *data, int num);
int ComparCandidate(const void *a, const void *b);
int GetUniqueSeat(users *data, int len, const char *seats, int size, char *seat);
void GenerateDateOfBirth(char *month, char *DoB);
void ProcessPerson(char *email);
#endif //GENERATOR_H
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment