Homework 07: Initial Import
This commit is contained in:
parent
1432c00d54
commit
1a1cb9f122
8 changed files with 482 additions and 0 deletions
34
homework07/seqit.c
Normal file
34
homework07/seqit.c
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* seqit.c: Print a sequence of numbers */
|
||||
|
||||
#include "list.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Functions */
|
||||
|
||||
void usage(int status) {
|
||||
fprintf(stderr, "Usage: seqit LAST\n");
|
||||
fprintf(stderr, " seqit FIRST LAST\n");
|
||||
fprintf(stderr, " seqit FIRST INCREMENT LAST\n");
|
||||
exit(status);
|
||||
}
|
||||
|
||||
List *generate_sequence(ssize_t first, ssize_t increment, ssize_t last) {
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Main Execution */
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
// TODO: Parse command line arguments
|
||||
|
||||
// TODO: Generate sequence
|
||||
|
||||
// TODO: Print out sequence
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
/* vim: set sts=4 sw=4 ts=8 expandtab ft=c: */
|
||||
Loading…
Reference in a new issue