From 4893b45e1eff42bd97d2b47a869a0b578ca13536 Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Mon, 22 Feb 2021 15:33:01 -0800 Subject: [PATCH] Rename test.c to example.c --- CMakeLists.txt | 4 ++-- test.c => example.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) rename test.c => example.c (78%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25a604c..df56bc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,6 @@ project(getch C) set(CMAKE_C_STANDARD 11) add_library(getch SHARED getch.c getch.h) -add_executable(test test.c ) +add_executable(example example.c ) -target_link_libraries(test -L./build getch) \ No newline at end of file +target_link_libraries(example -L./build getch) \ No newline at end of file diff --git a/test.c b/example.c similarity index 78% rename from test.c rename to example.c index 6ce8915..6de058d 100644 --- a/test.c +++ b/example.c @@ -12,8 +12,5 @@ int main() { printf("Special Key : %d\n", key); } - key = _getch(); - printf("Anything left? : %d\n", key); - return 0; } \ No newline at end of file