From 0b60bf1d23524dce48e069abba9f7e838d0d2721 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 29 Jan 2019 17:03:16 +0000 Subject: Added code to read/write. Not yet working. --- test/Makefile | 3 +++ test/sidtest.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 60e233d..670f38d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1 +1,4 @@ sidtest: sidtest.c + +clean: + rm -f sidtest diff --git a/test/sidtest.c b/test/sidtest.c index 767417c..7a843a9 100644 --- a/test/sidtest.c +++ b/test/sidtest.c @@ -58,8 +58,8 @@ int main(int argc, char *argv[]) if ((wrote = write(fd, setsound, sizeof setsound)) != sizeof setsound) { - printf("Only wrote %d of %zu bytes\n", wrote, sizeof setsound); perror("write"); + printf("Only wrote %d of %zu bytes\n", wrote, sizeof setsound); } printf("\n"); @@ -67,8 +67,8 @@ int main(int argc, char *argv[]) if ((wrote = write(fd, clearsound, sizeof clearsound)) != sizeof clearsound) { - printf("Only wrote %d of %zu bytes\n", wrote, sizeof clearsound); perror("write"); + printf("Only wrote %d of %zu bytes\n", wrote, sizeof clearsound); } close(fd); -- cgit v1.2.3