summaryrefslogtreecommitdiff
path: root/replay.h
blob: 983e05b76cd44c4832cec63f05c449b8bb823c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef REPLAY_H_INCLUDED
#define REPLAY_H_INCLUDED

#define _XOPEN_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <limits.h>

#define MAXCHAR 1000
#define TIMELEN 11 // 32-bit unixtime is up to 10 characters (+1 for null char) // TODO - Make this Year 2038 proof
#define TIMELENF 11 // [HH:MM:SS] = 10 characters + 1 for null char

int replaylines(int seconds, char *basedir);

int readreplayline(int seconds, int linenum, char *str, char *basedir);

int writereplayline(char *str, char *basedir);

#endif