printnum.h
Go to the documentation of this file.
1 #ifndef __PRINTNUM_H__
2 #define __PRINTNUM_H__
3 
4 /*
5  * printnum.h - simple functions to print a number using recursion.
6  *
7  * "Copyright (c) 2013-15 by Your name goes here."
8  *
9  * Permission to use, copy, modify, and distribute this software and its
10  * documentation for any purpose, without fee, and without written
11  * agreement is hereby granted, provided that the above copyright notice
12  * and the following two paragraphs appear in all copies of this software.
13  *
14  * IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
15  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
16  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR
17  * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18  *
19  * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
22  * BASIS, AND THE AUTHOR NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT,
23  * UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
24  */
25 
38 extern char* digits;
39 
45 char getDigit (int val);
46 
58 void divRem (int numerator, int divisor, int* quotient, int* remainder);
59 
68 void printNum (int x, int base);
69 
70 #endif
char getDigit(int val)
Definition: printnum.c:13
char * digits
Definition: testPrint.c:39
void printNum(int x, int base)
Definition: printnum.c:23
void divRem(int numerator, int divisor, int *quotient, int *remainder)
Definition: printnum.c:19