Back to DFS's C Page


OAC Problem Set II

Strings & Functions Problem

For this problem, you are to use the programs which you wrote for Problem Set I to create five functions: Length(), Pos(), Delete(), Insert() and Copy().

Each function is to be tested with a separate driver. Include all of the following features in each program.

  1. Each function, as closely as possible, must mirror the number of parameters and the return value (if any) of the corresponding Pascal procedure/function.
  2. The string "Sick over the ..." is stored in a variable local to main().
  3. main() prints out the parameters sent to the function being tested.
  4. main() prints out the outcome of the operation of the function.

© DFStermole 2001
Created 1 Nov 01