Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
mvahes
/
Lennubroneerimis_tarkvara
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a2152ecc
authored
Mar 15, 2023
by
karade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
402ad611
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment