blob: e51721ddeee851b664bb3ad270295cda54e47ec1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#define TITLE 100
#define AUTHOR 120
#define VIDEOID 11
#define DURATION 8
/*
* title -> max 100 characters
* author -> max 120 characters combined
* video id -> max 11 characters
* duration -> max 8 characters
* thumbnail -> https://i.ytimg.com/vi/[id]/hq720.jpg
*/
typedef struct video
{
char *title, *author, *id, *duration;
} Video;
Video createVideo(char *title, char *author, char *id, char *duration);
void freeVideo(Video *v);
|