integer - /* * * * * File: integer.h -This interface...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* File: integer.h * --------------- * This interface defines an abstraction for huge integers. * It provides several functions to read, print, and do * simple arithmetic on big intgers. */ /* These two lines are used by the compiler in order not to * compile this file more than once.*/ #ifndef _bigint_h # #define _bigint_h # /* * Type: integer * ------------- * The type integer is used in this interface to indicate * that an integer is a pointer to an integerNode. The * concrete definition of integerNode must be given in your * program. */ typedef struct integerNode *integer; t /* * Function: ReadInteger * Usage : myint = ReadInt(); * -------------------------- * This function reads digits of an integer one by one * and builds a linked list by allocating new memory space * for each digit. The function returns a pointer to this * newly created linked list. * The function skips leading spaces (blanks, carriage * return, tabs) and leading zeros while reading the * integer. The function reads the digits of the large
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 06/12/2011.

Page1 / 3

integer - /* * * * * File: integer.h -This interface...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online