summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-03-07 02:48:59 +0000
committerIan C <ianc@noddybox.co.uk>2004-03-07 02:48:59 +0000
commitface9be5bea3bc3026621fee87a7a7c495ea69e5 (patch)
tree70ef8fc5fc21d8c6ec79c594968e3b1b9e17c2af
parent85ddc980e0b55191a91d129f4c0bedd2057387e2 (diff)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
-rw-r--r--Makefile.win29
-rw-r--r--SioCheck.dev57
-rw-r--r--SioCheck.layout10
-rw-r--r--main.c36
4 files changed, 132 insertions, 0 deletions
diff --git a/Makefile.win b/Makefile.win
new file mode 100644
index 0000000..9a21bc9
--- /dev/null
+++ b/Makefile.win
@@ -0,0 +1,29 @@
+# Project: SioCheck
+# Makefile created by Dev-C++ 4.9.8.0
+
+CPP = g++.exe
+CC = gcc.exe
+WINDRES = windres.exe
+RES =
+OBJ = main.o $(RES)
+LINKOBJ = main.o $(RES)
+LIBS = -L"C:/Dev-Cpp/lib"
+INCS = -I"C:/Dev-Cpp/include"
+CXXINCS = -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include"
+BIN = SioCheck.exe
+CXXFLAGS = $(CXXINCS)
+CFLAGS = $(INCS)
+
+.PHONY: all all-before all-after clean clean-custom
+
+all: all-before SioCheck.exe all-after
+
+
+clean: clean-custom
+ rm -f $(OBJ) $(BIN)
+
+$(BIN): $(LINKOBJ)
+ $(CC) $(LINKOBJ) -o "SioCheck.exe" $(LIBS)
+
+main.o: main.c
+ $(CC) -c main.c -o main.o $(CFLAGS)
diff --git a/SioCheck.dev b/SioCheck.dev
new file mode 100644
index 0000000..86bc404
--- /dev/null
+++ b/SioCheck.dev
@@ -0,0 +1,57 @@
+[Project]
+FileName=SioCheck.dev
+Name=SioCheck
+UnitCount=1
+Type=1
+Ver=1
+ObjFiles=
+Includes=
+Libs=
+PrivateResource=
+ResourceIncludes=
+MakeIncludes=
+Compiler=
+CppCompiler=
+Linker=
+IsCpp=0
+Icon=
+ExeOutput=
+ObjectOutput=
+OverrideOutput=0
+OverrideOutputName=
+HostApplication=
+Folders=
+CommandLine=
+IncludeVersionInfo=0
+SupportXPThemes=0
+CompilerSet=0
+CompilerSettings=
+
+[Unit1]
+FileName=main.c
+CompileCpp=0
+Folder=
+Compile=1
+Link=1
+Priority=1000
+OverrideBuildCmd=0
+BuildCmd=
+
+[VersionInfo]
+Major=0
+Minor=1
+Release=1
+Build=1
+LanguageID=1033
+CharsetID=1252
+CompanyName=
+FileVersion=
+FileDescription=Developed using the Dev-C++ IDE
+InternalName=
+LegalCopyright=
+LegalTrademarks=
+OriginalFilename=
+ProductName=
+ProductVersion=
+AutoIncBuildNr=0
+
diff --git a/SioCheck.layout b/SioCheck.layout
new file mode 100644
index 0000000..6634522
--- /dev/null
+++ b/SioCheck.layout
@@ -0,0 +1,10 @@
+[Editors]
+Focused=0
+Order=0
+[Editor_0]
+Open=1
+Top=1
+CursorCol=35
+CursorRow=23
+TopLine=1
+LeftChar=1
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..c5ce270
--- /dev/null
+++ b/main.c
@@ -0,0 +1,36 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <windows.h>
+
+/*--------------------------------------------------- PROTOS
+*/
+
+/*--------------------------------------------------- MAIN
+*/
+int main(int argc, char *argv[])
+{
+ HANDLE port;
+
+ if (argc<2)
+ {
+ fprintf(stderr,"usage: %s port\n",argv[0]);
+ return EXIT_FAILURE;
+ }
+
+ port=CreateFile(argv[1],GENERIC_READ|GENERIC_WRITE,0,NULL,
+ OPEN_EXISTING,0,NULL);
+
+ if (port==INVALID_HANDLE_VALUE)
+ {
+ fprintf(stderr,"%s: error %ld opening %s\n",
+ argv[0],GetLastError(),argv[1]);
+
+ return EXIT_FAILURE;
+ }
+
+ CloseHandle(port);
+
+ printf("Done\n");
+
+ system("pause");
+}