source code for exercise 3 added

source code for the six c library functions added.