Add license
Signed-off-by: 0xf8 <0xf8.dev@proton.me>
This commit is contained in:
parent
fdbca41c12
commit
fcb6abb194
12
README.md
12
README.md
@ -6,13 +6,19 @@ A nice little clock app.
|
||||
- Right side of the `|` is the minute
|
||||
- The highlighted number is the second
|
||||
|
||||
# Dependencies
|
||||
## Dependencies
|
||||
- ncurses
|
||||
- clang
|
||||
- make
|
||||
|
||||
# Compiling
|
||||
## Compiling
|
||||
`make`
|
||||
|
||||
# Running
|
||||
## Running
|
||||
`./tempus`
|
||||
|
||||
## License
|
||||
This program is released under the GPL3.0 license. This is available at https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
## Copyright
|
||||
Copyright 2022 g.uwu@tutanota.com
|
19
src/main.c
19
src/main.c
@ -1,3 +1,16 @@
|
||||
/*
|
||||
|
||||
Copyright 2022 g.uwu@tutanota.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#include "./main.h"
|
||||
#include <curses.h>
|
||||
#include <stdlib.h>
|
||||
@ -87,7 +100,7 @@ int main(int argc, char **argv) {
|
||||
// tests
|
||||
struct timespec remaining, request = {SECS_TO_SLEEP, NSEC_TO_SLEEP};
|
||||
|
||||
WINDOW *w = initscr();
|
||||
initscr();
|
||||
int rows = LINES - 1;
|
||||
int cols = COLS - 1;
|
||||
int midr = rows/2;
|
||||
@ -121,10 +134,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
int sec = lc->tm_sec;
|
||||
|
||||
// print_number
|
||||
// #hour
|
||||
int sy = 0, sx = 0;
|
||||
|
||||
struct bignumber_t *bn_houru = bignumber(00, 0, houru);
|
||||
struct bignumber_t *bn_hourl = bignumber(15, 1, hourl);
|
||||
struct bignumber_t *bn_minu = bignumber(30, 2, minu);
|
||||
|
13
src/main.h
13
src/main.h
@ -1,3 +1,16 @@
|
||||
/*
|
||||
|
||||
Copyright 2022 g.uwu@tutanota.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user