31 lines
417 B
C
31 lines
417 B
C
|
/* fetch.c - fetch from file */
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#ifdef LOCAL_PROBOTIC_MAIN
|
||
|
|
||
|
int
|
||
|
main (int argc,
|
||
|
char ** argv)
|
||
|
{
|
||
|
if (argc > 1)
|
||
|
{
|
||
|
char * b;
|
||
|
/* get week number via stoi */
|
||
|
++argv; --argc;
|
||
|
/* no options, yet */
|
||
|
while (++argv, --argc)
|
||
|
{
|
||
|
printf("%s\n", *argv);
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
/* no stdin yet */
|
||
|
/* usage(); */
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif /* LOCAL_PROBOTIC_MAIN */
|