Contents
- .
- ./index.html
- ./myProg.c
- ./printInt.c
- ./printInt.h
. 1/5
[top][prev][next]
./index.html 2/5
[top][prev][next]
<html>
<head><title>Examples for /home/faculty/sprenkle/public_html/cs330/examples/17-sync</title>
<link rel="stylesheet" type="text/css" href="http://www.cs.wlu.edu/~sprenkle/cs330/css/themes/spacelab.min.css" />
<link rel="stylesheet" type="text/css" href="http://www.cs.wlu.edu/~sprenkle/cs330/css/course.css" />
<link rel="stylesheet" type="text/css" href="http://www.cs.wlu.edu/~sprenkle/cs330/css/syntax.css" />
<link rel="stylesheet" type="text/css" href="http://www.cs.wlu.edu/~sprenkle/cs330/css/style.css" />
</head>
<body>
<h1>Examples for /home/faculty/sprenkle/public_html/cs330/examples/17-sync</h1>
<ul>
<li><a href=".//code.html">All IN ONE FILE (pretty syntax)</a>
<li><a href=".//Makefile">Makefile</a></li>
<li><a href=".//myProg.c">myProg.c</a></li>
<li><a href=".//printInt.c">printInt.c</a></li>
<li><a href=".//printInt.h">printInt.h</a></li>
</ul>
</body>
./myProg.c 3/5
[top][prev][next]
#include "stdio.h"
#include "printInt.h"
void main() {
int vals[3];
vals[0] = 7;
vals[1] = 9;
vals[2] = 22;
printIntArr(vals,3);
}
./printInt.c 4/5
[top][prev][next]
#include "stdio.h"
#include "printInt.h"
void printIntArr(int *arr, int len) {
int i;
for (i=0; i<len; i++) {
printf("%d ", arr[i]);
}
printf("\n\r");
}
./printInt.h 5/5
[top][prev][next]
#ifndef PRINT_INT
#define PRINT_INT
void printIntArr(int *arr, int len);
#endif
Generated by GNU Enscript 1.6.6.