next up previous [pdf]

Next: sfattr: Display dataset attributes. Up: sfadd: Add, multiply, or Previous: sfadd: Add, multiply, or

Implementation: system/main/add.c

The first input file is either in the list or in the standard input.

system/main/add.c

Collect input files in the in array from all command-line parameters that don't contain an ``='' sign. The total number of input files is nin.

system/main/add.c

A helper function check_compat checks the compatibility of input files.

system/main/add.c

Finally, we enter the main loop, where the input data are getting read buffer by buffer and combined in the total product depending on the data type.

system/main/add.c

The data combination program for floating point numbers is add_float.

system/main/add.c




2012-07-19