47 lines
No EOL
1 KiB
C
47 lines
No EOL
1 KiB
C
// header files
|
|
#include "StringUtils.h"
|
|
|
|
// constants
|
|
|
|
/*
|
|
Name: main
|
|
Process: Runs the String Utilities
|
|
Function input/parameters: NONE
|
|
Function output/parameters: NONE
|
|
Function output/returned: NONE
|
|
Device input/---: NONE
|
|
Device output/---: NONE
|
|
Dependencies: included by standard libraries
|
|
*/
|
|
int main()
|
|
{
|
|
// define/initialize variables
|
|
printf("\n---Phase 6: All String Utilities---\n");
|
|
printf("=====================================\n");
|
|
// get user input
|
|
// do calculations
|
|
|
|
// string length
|
|
// getStringLength
|
|
// string copy
|
|
// copyString
|
|
// string concatenate
|
|
// catString
|
|
// string compare (<, >, =)
|
|
// compareString
|
|
// string substring get
|
|
// substringGet
|
|
// string substring find
|
|
// substringFind
|
|
// string set to lower
|
|
// lowerString
|
|
// string get to delimiter
|
|
// stringDelimiter
|
|
// string get to end of line
|
|
// stringEOL
|
|
|
|
// display results
|
|
printf("\nProgram End\n");
|
|
// return success
|
|
return 0;
|
|
} |