mirror of
https://github.com/gungwald/prodos-more.git
synced 2024-06-11 11:29:28 +00:00
21 lines
302 B
C
21 lines
302 B
C
|
/*
|
||
|
* 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;
|
||
|
}
|