]> git.huck.website - odot.git/commitdiff
automatic backup
authorHuck Boles <huboles@protonmail.com>
Sat, 22 Oct 2022 17:00:02 +0000 (12:00 -0500)
committerHuck Boles <huboles@protonmail.com>
Sat, 22 Oct 2022 17:00:02 +0000 (12:00 -0500)
83 files changed:
.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_itimerspec.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_tm.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@ctype.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@include@time.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob
.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob
.ccls-cache/@home@huck@.repos@odot/dialogue.c
.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob
.ccls-cache/@home@huck@.repos@odot/file.c
.ccls-cache/@home@huck@.repos@odot/file.c.blob
.ccls-cache/@home@huck@.repos@odot/func.c
.ccls-cache/@home@huck@.repos@odot/func.c.blob
.ccls-cache/@home@huck@.repos@odot/input.c
.ccls-cache/@home@huck@.repos@odot/input.c.blob
.ccls-cache/@home@huck@.repos@odot/main.c
.ccls-cache/@home@huck@.repos@odot/main.c.blob
.ccls-cache/@home@huck@.repos@odot/odot.h
.ccls-cache/@home@huck@.repos@odot/odot.h.blob
.ccls-cache/@home@huck@.repos@odot/structure.c
.ccls-cache/@home@huck@.repos@odot/structure.c.blob
dialogue.c
file.c
func.c
input.c
main.c
odot.h
structure.c

index 899af999d4930e4d32140bbcb569888a16d126db..d86109c2cea1605265d76dca91aea3d89be602ca 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob differ
index b7f5f30f1652f2e8bb0aaab177c78b7b920ff937..492f8654d8c47299a36cba1944c929677d55cbd9 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob differ
index 5f7f1eba554347afe708d8260cae4d074c823bab..b859ea72b74fe562d9c8e7930825a25c5ac2547e 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob differ
index 533ada92fcb2060ebb815a29c388a2af0b9e36b3..9727efa567416e6f6a118d79e366982a8b3308ae 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob differ
index 83763555996aab0896d14a6352b9af0d691e925d..1305858fd3213db7917c09d3c6ce59037b74c2a1 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob differ
index 691d09dcf11ff9dcb88f08432a610309db867a42..0b6438bdeb0a3ca166b593b606afa872cd001f44 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob differ
index 98609aa33f745a1a2de5a6011646cc72d3534f5a..6c085e04bd2212efefb2490c16786efb6f187f47 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob differ
index 9df32ba0f23cb110fc2b42e9049b2ad2bd018ec8..5e2fc39780425537312ec794c7e0835bceab1ecf 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob differ
index 926d0afa0c32118d3de5315e31fb92fac445ee5e..c179bd3af26d6f2727618d9bfbead2d729ab7aa0 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob differ
index eb339b59b52a4d39e800d0e38d762e8840bbb086..a95bcd3b613f03e49b26a9ebeb84d07454ded0a6 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob differ
index 58e50ff19753b1d221ebd0779d3422afdf6e98d2..22c68f3209c62552aa9f2c1da31a53dd17f23bcb 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob differ
index 30155ac5d1c29096815c04757d91eda688dcecf3..e23301fe579d08c383638d1cfd2041dfbc3c4773 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob differ
index 8374ea6275cdd2cd8c14461e3ad94db22783326e..b844b2568e528981d397c691c9cf8534f25a0363 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob differ
index 62dc396505bc0b75a54b603f1379202dcba2da17..c3501b5272f63585b76f5162dbc1d11905e795ab 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob differ
index 7b6c5c2a2045ca49846f6c66d546c6c5c9b9c729..fa813d913db02f8279e2c00dd0fd9150b0904ab5 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob differ
index 06660e0d4fca6888ca23555bf22b3e372a9e13f1..adf850056c597bad6de551617de65fb3adbfde30 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob differ
index 56e3cc58143cc5ac3eb104aa6e0a7fc93e25374c..f5dcb3b4a2267e699cc53878dc0bd8f6a41966ca 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob differ
index 120d525233c7c938333386104a819bb18255bf5a..e152d0c02d410af2d26625d28529413f559babbb 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob differ
index aceb24fe773d49437ef8d53b504b7040c526d47f..7601b306a3def63d7d36e8df7dd6489f691e6c0d 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time.h.blob differ
index 03bbdaa4431fc5e47c1a2e48e6342403c7e770b6..271fbc11641581202341bc3f82b2fb55bc477e98 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob differ
index e27db2cfe24276ce50c9073cb5d7c568374adc7a..01e5eb1d3f94f3be460184a29baefa2b0db096e0 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob differ
index bb5f9fe493427b3885d3584bb9cc274c348c2ab0..397eee9aecc2478f45396eebcc5c29a0bfe91705 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob differ
index 4ae1be7db472395f78e9388bedcd07d1005cf4ba..b2eaac6a5d5f125d727a4061c9fb1e569ae04dd0 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob differ
index cd8f0719168226931601ffce199fe1840793aa42..fe30053a392c6553d13d78e534b11d771e4772ad 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob differ
index f30a54d1b76fabe3112674af6b013e1be7912f5c..f90f738f68d31cdbec99ed09f0aa1a2e09acf3dd 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob differ
index 7b940621ad0de699238bea620464efff41732463..dc88dd80e0ef8446af4a06320b89c0c816bbf9ab 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob differ
index 41fdbb605b971b767e2bff54f9125d192d6ac10e..856dab4231535714896c86e51627f46451436324 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob differ
index b8e332950abf21c3c90193ee971ffb45873c6915..fe7aca3aca1652c8560c2f3fde88f091282de78e 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob differ
index 9b278be651bcc5631081392dded5a72873ef93d4..f931a53dc402d07805f98a0051a9aa42c615ec60 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob differ
index 74cbb7c06b3ac6b29c4f8091ee26e37c2413ded1..7663dfae4073a5e2207dcff2f7c1dc8919091ce1 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob differ
index 114b2197706b16a33ff3c083c293e94737570736..062b74e2d51227e17bb99dd9ea4c34c9d7f3137f 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob differ
index 428fb166c8d17944113b312942bcaa061406f541..36f8628392dde6a5e9ca25d5424cede347bdeb31 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob differ
index 7e8459df701302f3020d8a48399f94f82af6d5c9..f159c20207d27ef55798f8ef3e1fb19e46163198 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob differ
index ee0295535134b1edd1303ce4584a2bd551206c34..88e43b8fda04a0e36a367e48795afe4791e2e486 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob differ
index 6c2a459e11b3d7f14f1ed4060a0bf66ae41fa471..10c09cd3f967b2c13f9700e17e880335ff3b28b7 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_itimerspec.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_itimerspec.h.blob differ
index 97e0b424cceb0f54fe09abf1767006a5c952572a..e70160011d86c7c0346ab63cfafe77b44b373a05 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob differ
index fb2d47b02fbde9a1d2fa8b9651deab76e3e8d160..288d577f0dca5cab43a58623c0e844828299791e 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob differ
index fef60e70f5a7419a7a233f6601e2dacb5a2b9cc9..22b9a02c6486ba6d10d3276fd6726748d49c57fe 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_tm.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_tm.h.blob differ
index 07ed96006b3e79c78131ee6a4a417e87729837d5..c4868f4e132f89ba8ac04cd6e15b5b6df658f8fb 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob differ
index ef8b5a247483bc42bee0a83c844535faea17238e..88eba7eb859afab4e83c6a1a2d493088c94f42de 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob differ
index 7c044a60fcc15bda1202fa427b6bd8c794c7e8f5..146064edcd68891eaae83a92f849a9a59a626086 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob differ
index b4df500b5f2259348a370dea2c71bd225ca38891..4e45704c3c36492881dcf2869f0968532126128f 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob differ
index d802eb778ef7fbdf894c78392a063e2e69a52103..7b374a53b3e261a02ab0ce3f08a4a2b7e96b299a 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob differ
index 29f35f7de2d4938a6ff5aa908c01beb6d2286fec..fee1c089db8c1c0c7092d5947753ade0afa8fecb 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob differ
index 7870468858a26992f9438b8cd9b05d7d58c59067..83d7c432e54ad466b9bc83ad31a6c6f26837ac7e 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob differ
index 08f0be32b1907930b0e8e096e7b53688f5a82d74..844666ed7ecd092387398a399c5448b9456e53fc 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@ctype.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@ctype.h.blob differ
index bff878251e40e18e0bbf674937319c8276c809bc..ecacf64a2c718e3eee106a962feb88f889413c09 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob differ
index 73e7ab53df4decfa8854c6511010c9a426434244..fa4aeeefde351230b3c827619850831b8fab8689 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob differ
index 53fd5de932f036e39cfb714f5df79687078be01a..be90214c05fae0c1d7b41164c9d1d70ff6f11250 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob differ
index 52d62fb451da5b2b24b130a954c51f783ab429df..006dd6e2de31442a83d67077bbf58e2ff2cbb5e9 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob differ
index 2b84f8b73cbc50770c60e4860c8e8f085ee3856f..234c447338a2159482b629834242ee78fc7399ac 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob differ
index ec725debd6f0b76f6da0e9b960661e4f4f5756d9..605f6ab091b41d1545c257fd5f9a2f97db9d5dbc 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob differ
index f7f3f3e2296148a69de3372ac3d3bff01ee32900..46791e7a1dd387ae708dabac96d02e756a46033b 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob differ
index 8075e3830277ca03b187719a61bd74ec1fac01c1..94075804a25734036311d2f174aa2cf4b3519409 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob differ
index 8f17dd3f50b5c05426419185a5a36efe6974e123..7ca7c8a8fdaad3454fe3197cac9fb56c463aac88 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob differ
index 8381de7ebd7d608feb91e4a503666d6fb194c816..3bcb32034ef7a3695826d5747c19105347145091 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob differ
index e036e58e4906f50a87ece22bd00fe22a5229ed53..f66b0cbc32e832589eb722b359edcae790cb62b8 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob differ
index 5cc5e99fdb5f1b708c29554263d849b5037ae9c4..e5f93e9da66bdf13c82b4faf5d42db7d896d4a1d 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob differ
index 26c055b040051b5aeeda86d22003ee57d3d1cd35..9754b2e179d9aa1dc10da793340ff7e88d6a465c 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob differ
index f73f1a9449877e4cf7b9f38253779d248a2de01a..7b24f83657d72d19520aebaa0f3d40308c8a1798 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@time.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@time.h.blob differ
index 419fa603d02673c0644be6ee9a9563981ba9d6c3..47ed2b83f241ff9e01f8f7048df2bc298b8388a6 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob differ
index 8bf5ca30f0efe268314fc1f2d746049410794401..c622d3bd5ab8afb99ead2dfdbda80ab079f5e2da 100644 (file)
Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob differ
index 9e186adb0a72312c37fc45908567ca1320685822..599408c8b42febf612e87880e4c0a868f34abdf6 100644 (file)
@@ -3,7 +3,18 @@
 void error(char type){
     switch (type) {
         case 'f':
+            fprintf(stderr,"ERROR: COULD NOT ACCESS FILE: %s\n", TODOLIST);
+            exit(1);
         case 't':
-        case ''
+            fprintf(stderr,"ERROR: COULD NOT GET CURRENT TIME\n");
+            exit(2);
+        case 'r':
+            fprintf(stderr,"ERROR: ARGUMENT OUT OF RANGE\n");
+            exit(3);
     }
 }
+
+void dialogue(char *m1, char *m2, int c){
+    printf("\033[1;3%im%s\033[0m: %s\n", c, m1, m2);
+    return;
+}
index 0f2a42fff251b7e9657643f9db44501d95a0fba8..47b96a61e7a5bd33321c2efc01050e5c3048afd8 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob and b/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob differ
index 9800c59ce3d4c994e6e99050349c21e313e4f1db..9449bae02d19c3f22245d0723ac2577b7106949a 100644 (file)
@@ -8,10 +8,8 @@ enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};
 
 void add(void){
     fp = fopen(TODOLIST, "a");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
     fputs(strcat(note,"\n"),fp);
     fclose(fp);
 }
@@ -21,10 +19,8 @@ void rem(void){
     FILE *tmp = fopen("temp", "w");
 
     fp = fopen(TODOLIST, "r");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
 
 
     while (fgets(s, MAXLINE, fp) != NULL){
@@ -46,11 +42,8 @@ void rem(void){
 void show(void){
     char *c = (char *) malloc(MAXLINE * sizeof(int));
 
-    fp = fopen(TODOLIST,"r");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE %s",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
 
     while (fgets(c, MAXLINE, fp) != NULL )
         printf("\t\t\033[1;3%im*\033[0m %s",geturgency(urgency), c);
index 5ce3b003db84050a257ec877717128e127aba895..2417fd5da138f7aec64cbb69479606626eb329e3 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/file.c.blob and b/.ccls-cache/@home@huck@.repos@odot/file.c.blob differ
index e88fb54dece05aaa1216d0d24790cd7aacd28747..4d025affc1dd820e961e40946e709f4903231ff3 100644 (file)
@@ -2,14 +2,17 @@
 
 enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};
 
-int listcheck(void){
-    char *s = malloc(MAXLINE * sizeof(char));
+
+int listcheck(struct task t){
+    char *s = malloc(t.length* sizeof(char));
 
     fp = fopen(TODOLIST, "r");
+    if (fp == NULL)
+        error('f');
 
-    while (fgets(s, MAXLINE, fp) != NULL){
+    while (fgets(s, t.length, fp) != NULL){
         s[strlen(s) - 1] = 0;
-        if (strcmp(note, s) == 0){
+        if (strcmp(t.task, s) == 0){
             free(s);
             return 1;
         }
@@ -27,26 +30,38 @@ int geturgency(int n){
         else
             return GREEN;
     } else {
-        printf("ERROR: urgency OUT OF RANGE");
-        return -1;
+        error('r');
     }
-        
 }
 
 char *gettime(void){
-    char *c = malloc(64*sizeof(char));
-    time_t t = time(NULL);
+    struct tm *s;
+    time_t *t ;
+    char *c = malloc(16*sizeof(char));
+
+    *t = time(NULL);
     if (t == ((t) - 1)){
         error('t');
     }
+    
+    s = localtime(t);
 
-    c = ctime(&t);
+    strftime(c, 16, "%y-%m-%d %H:%M", s);
 
     if (c == NULL){
         error('t');
     }
 
     return c;
+}
 
-
+int linecount(FILE *fp){
+    int i = 0;
+    char c;
+    while ((c = fgetc(fp)) != EOF){
+        if (c == '\n')
+            i++;
+    }
+    rewind(fp);
+    return i;
 }
index 1e4696f2b7d83d29ae6baf6e2af8e1f9e09e0991..c06aab0bf66736f2f597baf7c2ea25135c6b5a44 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/func.c.blob and b/.ccls-cache/@home@huck@.repos@odot/func.c.blob differ
index 5f1ac10dca65d48de4f2c43e3605bc2bfa70352f..a0dbedfd18e68858fe74ebda8f7605c011aa4481 100644 (file)
@@ -36,7 +36,7 @@ void getopt(int n, char *arg[]){
             if (isdigit((int) *++arg)){
                 urgency = (int) *arg;
             } else {
-                printf("Non-integer argument for -i: %s\n", *arg);
+                error('r');
             }
         } else {
             urgency = 5;
index 00881a6334724f8758447d810cc11ba2ca18b60e..36a66b37cd105299ef78c2657e5ac9148384f029 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/input.c.blob and b/.ccls-cache/@home@huck@.repos@odot/input.c.blob differ
index 745a777e6f5ce92e2d0d9d6e93f3df40796e3ad6..6ec8b6435d2b84d2ab1bdc761ed03a82d96d6f7c 100644 (file)
@@ -6,17 +6,17 @@ extern int urgency;
 int main(int argc, char *argv[]){
     char op;
     int length,i;
+    struct task t;
     note = (char *) malloc(MAXLINE * sizeof(char));
     o = (char *) malloc (3 * sizeof(char));
 
-    getnote(argc, argv);
-    length = strlen(note)+1;
+    t = maketask(argc, argv);
     getopt(argc, argv);
     
     for (i = 0; i < strlen(o); i++)
         switch (o[i]) {
             case 'n':
-                if (listcheck() == 0){
+                if (listcheck(t) == 0){
                     add();
                     printf("\033[32mAdded to list\033[0m: %s\n", note);
                 } else {
@@ -26,7 +26,7 @@ int main(int argc, char *argv[]){
                 }
                 break;
             case 'd':
-                if (listcheck() == 1) {
+                if (listcheck(t) == 1) {
                     rem();
                     printf("\033[36mRemoved from list\033[0m: %s\n", note);
                 } else {
index 9ab12dad3e25b78aa864be61084cb7e7b0516721..2c2f711729c86689f600924c8a2c27ae49f8eb91 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/main.c.blob and b/.ccls-cache/@home@huck@.repos@odot/main.c.blob differ
index d617324d5d75f05662605793467e26ca7b738caf..81a5ea96c54f5d966e36e08d75c6cd5480db575d 100644 (file)
@@ -8,16 +8,31 @@
 #define TIME "%H:%M %m-%d-%y"
 #define TODOLIST "/home/huck/.local/state/odot/todo"
 
+struct task {
+    int length;
+    char *task;
+    char *date;
+    char *due;
+    int urgency;
+};
+
 char *getnote(int, char *[]);
 void getopt(int, char *[]);
+
 void add(void);
 void rem(void);
 void show(void);
-int listcheck(void);
+
+int listcheck(struct task);
 int geturgency(int);
+char *gettime(void);
 
 void error(char);
 
+struct task maketask(int n, char **arg);
+void puttask(struct task n, FILE *fp);
+struct task gettask(FILE *fp);
+
 char *note, *o;
 int urgency;
 FILE *fp;
index 7ca150acdff257c5b8181794a9e7a17ed8463a70..e61d6f5a9eda9f9d45ccaf5ee0d3e515d8358d04 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/odot.h.blob and b/.ccls-cache/@home@huck@.repos@odot/odot.h.blob differ
index 5071761120ccdc4ba3825ea0f85f4f641c027b4a..ecdfb7f1cd1331b25b93c5083909039e94b25532 100644 (file)
@@ -3,41 +3,29 @@
 extern int urgency;
 extern FILE *fp;
 
-struct task {
-    int length;
-    char *task;
-    int date;
-    int due;
-    int urgency;
-};
 
 struct task maketask(int n, char **arg){
     struct task temp;
 
     temp.task = getnote(n,arg);
     temp.length = strlen(temp.task);
-    temp.date = 0;
+    temp.date = gettime();
     temp.due = 0;
     temp.urgency = urgency;
 
     return temp;
 }
 
-void puttask(struct task n){
-    fp = fopen(TODOLIST, "w");
+void puttask(struct task n, FILE *fp){
 
-    if (fp == NULL){
-        error('f');
-    }
-
-    fprintf(fp, "%i\t%s\t%i\t%i\t%i\n",n.length,n.task,n.date,n.due,n.urgency);
+    fprintf(fp, "%i\t%s\t%s\t%s\t%i\n",n.length,n.task,n.date,n.due,n.urgency);
     
 }
 
-struct task gettask(char *c){
+struct task gettask(FILE *fp){
     struct task tmp;
     
-    sscanf(c,"%i\t%s\t%i\t%i\t%i\n",&tmp.length,tmp.task,&tmp.date,&tmp.due,&tmp.urgency);
+    fscanf(fp,"%i\t%s\t%s\t%s\t%i\n",&tmp.length,tmp.task,tmp.date,tmp.due,&tmp.urgency);
 
     return tmp;
 }
index 72290d822909bfa9789cb3f5cbcb2dcdbdaef6f0..c697e642af4be7b917743e35bbb7edce88afc1f0 100644 (file)
Binary files a/.ccls-cache/@home@huck@.repos@odot/structure.c.blob and b/.ccls-cache/@home@huck@.repos@odot/structure.c.blob differ
index 9e186adb0a72312c37fc45908567ca1320685822..599408c8b42febf612e87880e4c0a868f34abdf6 100644 (file)
@@ -3,7 +3,18 @@
 void error(char type){
     switch (type) {
         case 'f':
+            fprintf(stderr,"ERROR: COULD NOT ACCESS FILE: %s\n", TODOLIST);
+            exit(1);
         case 't':
-        case ''
+            fprintf(stderr,"ERROR: COULD NOT GET CURRENT TIME\n");
+            exit(2);
+        case 'r':
+            fprintf(stderr,"ERROR: ARGUMENT OUT OF RANGE\n");
+            exit(3);
     }
 }
+
+void dialogue(char *m1, char *m2, int c){
+    printf("\033[1;3%im%s\033[0m: %s\n", c, m1, m2);
+    return;
+}
diff --git a/file.c b/file.c
index 9800c59ce3d4c994e6e99050349c21e313e4f1db..9449bae02d19c3f22245d0723ac2577b7106949a 100644 (file)
--- a/file.c
+++ b/file.c
@@ -8,10 +8,8 @@ enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};
 
 void add(void){
     fp = fopen(TODOLIST, "a");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
     fputs(strcat(note,"\n"),fp);
     fclose(fp);
 }
@@ -21,10 +19,8 @@ void rem(void){
     FILE *tmp = fopen("temp", "w");
 
     fp = fopen(TODOLIST, "r");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
 
 
     while (fgets(s, MAXLINE, fp) != NULL){
@@ -46,11 +42,8 @@ void rem(void){
 void show(void){
     char *c = (char *) malloc(MAXLINE * sizeof(int));
 
-    fp = fopen(TODOLIST,"r");
-    if (fp == NULL){
-        printf("ERROR: COULD NOT ACCESS FILE %s",TODOLIST);
-        return;
-    }
+    if (fp == NULL)
+        error('f');
 
     while (fgets(c, MAXLINE, fp) != NULL )
         printf("\t\t\033[1;3%im*\033[0m %s",geturgency(urgency), c);
diff --git a/func.c b/func.c
index e88fb54dece05aaa1216d0d24790cd7aacd28747..4d025affc1dd820e961e40946e709f4903231ff3 100644 (file)
--- a/func.c
+++ b/func.c
@@ -2,14 +2,17 @@
 
 enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE};
 
-int listcheck(void){
-    char *s = malloc(MAXLINE * sizeof(char));
+
+int listcheck(struct task t){
+    char *s = malloc(t.length* sizeof(char));
 
     fp = fopen(TODOLIST, "r");
+    if (fp == NULL)
+        error('f');
 
-    while (fgets(s, MAXLINE, fp) != NULL){
+    while (fgets(s, t.length, fp) != NULL){
         s[strlen(s) - 1] = 0;
-        if (strcmp(note, s) == 0){
+        if (strcmp(t.task, s) == 0){
             free(s);
             return 1;
         }
@@ -27,26 +30,38 @@ int geturgency(int n){
         else
             return GREEN;
     } else {
-        printf("ERROR: urgency OUT OF RANGE");
-        return -1;
+        error('r');
     }
-        
 }
 
 char *gettime(void){
-    char *c = malloc(64*sizeof(char));
-    time_t t = time(NULL);
+    struct tm *s;
+    time_t *t ;
+    char *c = malloc(16*sizeof(char));
+
+    *t = time(NULL);
     if (t == ((t) - 1)){
         error('t');
     }
+    
+    s = localtime(t);
 
-    c = ctime(&t);
+    strftime(c, 16, "%y-%m-%d %H:%M", s);
 
     if (c == NULL){
         error('t');
     }
 
     return c;
+}
 
-
+int linecount(FILE *fp){
+    int i = 0;
+    char c;
+    while ((c = fgetc(fp)) != EOF){
+        if (c == '\n')
+            i++;
+    }
+    rewind(fp);
+    return i;
 }
diff --git a/input.c b/input.c
index 5f1ac10dca65d48de4f2c43e3605bc2bfa70352f..a0dbedfd18e68858fe74ebda8f7605c011aa4481 100644 (file)
--- a/input.c
+++ b/input.c
@@ -36,7 +36,7 @@ void getopt(int n, char *arg[]){
             if (isdigit((int) *++arg)){
                 urgency = (int) *arg;
             } else {
-                printf("Non-integer argument for -i: %s\n", *arg);
+                error('r');
             }
         } else {
             urgency = 5;
diff --git a/main.c b/main.c
index 745a777e6f5ce92e2d0d9d6e93f3df40796e3ad6..6ec8b6435d2b84d2ab1bdc761ed03a82d96d6f7c 100644 (file)
--- a/main.c
+++ b/main.c
@@ -6,17 +6,17 @@ extern int urgency;
 int main(int argc, char *argv[]){
     char op;
     int length,i;
+    struct task t;
     note = (char *) malloc(MAXLINE * sizeof(char));
     o = (char *) malloc (3 * sizeof(char));
 
-    getnote(argc, argv);
-    length = strlen(note)+1;
+    t = maketask(argc, argv);
     getopt(argc, argv);
     
     for (i = 0; i < strlen(o); i++)
         switch (o[i]) {
             case 'n':
-                if (listcheck() == 0){
+                if (listcheck(t) == 0){
                     add();
                     printf("\033[32mAdded to list\033[0m: %s\n", note);
                 } else {
@@ -26,7 +26,7 @@ int main(int argc, char *argv[]){
                 }
                 break;
             case 'd':
-                if (listcheck() == 1) {
+                if (listcheck(t) == 1) {
                     rem();
                     printf("\033[36mRemoved from list\033[0m: %s\n", note);
                 } else {
diff --git a/odot.h b/odot.h
index d617324d5d75f05662605793467e26ca7b738caf..81a5ea96c54f5d966e36e08d75c6cd5480db575d 100644 (file)
--- a/odot.h
+++ b/odot.h
@@ -8,16 +8,31 @@
 #define TIME "%H:%M %m-%d-%y"
 #define TODOLIST "/home/huck/.local/state/odot/todo"
 
+struct task {
+    int length;
+    char *task;
+    char *date;
+    char *due;
+    int urgency;
+};
+
 char *getnote(int, char *[]);
 void getopt(int, char *[]);
+
 void add(void);
 void rem(void);
 void show(void);
-int listcheck(void);
+
+int listcheck(struct task);
 int geturgency(int);
+char *gettime(void);
 
 void error(char);
 
+struct task maketask(int n, char **arg);
+void puttask(struct task n, FILE *fp);
+struct task gettask(FILE *fp);
+
 char *note, *o;
 int urgency;
 FILE *fp;
index 5071761120ccdc4ba3825ea0f85f4f641c027b4a..ecdfb7f1cd1331b25b93c5083909039e94b25532 100644 (file)
@@ -3,41 +3,29 @@
 extern int urgency;
 extern FILE *fp;
 
-struct task {
-    int length;
-    char *task;
-    int date;
-    int due;
-    int urgency;
-};
 
 struct task maketask(int n, char **arg){
     struct task temp;
 
     temp.task = getnote(n,arg);
     temp.length = strlen(temp.task);
-    temp.date = 0;
+    temp.date = gettime();
     temp.due = 0;
     temp.urgency = urgency;
 
     return temp;
 }
 
-void puttask(struct task n){
-    fp = fopen(TODOLIST, "w");
+void puttask(struct task n, FILE *fp){
 
-    if (fp == NULL){
-        error('f');
-    }
-
-    fprintf(fp, "%i\t%s\t%i\t%i\t%i\n",n.length,n.task,n.date,n.due,n.urgency);
+    fprintf(fp, "%i\t%s\t%s\t%s\t%i\n",n.length,n.task,n.date,n.due,n.urgency);
     
 }
 
-struct task gettask(char *c){
+struct task gettask(FILE *fp){
     struct task tmp;
     
-    sscanf(c,"%i\t%s\t%i\t%i\t%i\n",&tmp.length,tmp.task,&tmp.date,&tmp.due,&tmp.urgency);
+    fscanf(fp,"%i\t%s\t%s\t%s\t%i\n",&tmp.length,tmp.task,tmp.date,tmp.due,&tmp.urgency);
 
     return tmp;
 }