Skip to content

Commit

Permalink
Update printInts to take range of indexes to print.
Browse files Browse the repository at this point in the history
  • Loading branch information
maryrosecook committed Aug 14, 2012
1 parent 278e693 commit 930bfc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
void printInts(int *ref, int count);
void printInts(int *ref, int start, int end);

void printInts(int *ref, int count) {
void printInts(int *ref, int start, int end) {
int i;
for(i = 0; i < count; i++) {
for(i = start; i <= end; i++) {
printf("%d ", *(ref+i));
}
printf("\n");
Expand Down

0 comments on commit 930bfc1

Please sign in to comment.