diff --git a/.cproject b/.cproject new file mode 100644 index 0000000..273f4be --- /dev/null +++ b/.cproject @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..b056a70 --- /dev/null +++ b/.project @@ -0,0 +1,78 @@ + + + prodos-more + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + true + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/more.c b/more.c new file mode 100644 index 0000000..630ad4d --- /dev/null +++ b/more.c @@ -0,0 +1,20 @@ +/* + * more.c + * + * Created on: Jan 4, 2020 + * Author: bill + */ + +int main(int argumentCount, char *arguments) +{ + int i; + int exitCode; + + if (argumentCount == 0) + exitCode = more(askUserForFile()); + else + for (i = 1; i < argumentCount; ++i) + exitCode = more(arguments[i]); + + return exitCode; +}