Clock/forLoop.c File Reference

Task to add the integers from 1. Task to add the integers from 1..numElements. This can be timed using the timing infrastructure. More...

#include <stdio.h>

Functions

void prepareInput ()
 No preprocessing.
void execute ()
 Execute by invoking malloc(numElements) a total of numT times.
void postInputProcessing ()
 No postprocessing.
void problemUsage ()
 No specific problem usage.

Variables

int numElements
 Set by the command line -n argument.


Detailed Description

Task to add the integers from 1. Task to add the integers from 1..numElements. This can be timed using the timing infrastructure.

.numElements.

Author:
George Heineman
Date:
6/15/08

Function Documentation

void execute (  ) 

Execute by invoking malloc(numElements) a total of numT times.

.numElements

output sum to be sure is correct.

void postInputProcessing (  ) 

No postprocessing.

void prepareInput (  ) 

No preprocessing.

void problemUsage (  ) 

No specific problem usage.


Variable Documentation

int numElements

Set by the command line -n argument.

Note: This behavior is unusual. You have been warned.

Algorithm Development Kit 1.0