32 lines
No EOL
907 B
C
32 lines
No EOL
907 B
C
// header files
|
|
#include "StringUtils.h"
|
|
|
|
// constants
|
|
|
|
/*
|
|
Name: main
|
|
Process: Runs all the functions listed above that was used as preparation for
|
|
CS480. Videos were used as the similar practice.
|
|
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
|
|
int stringLen = 0;
|
|
char newString[] = "This is my new string!!!";
|
|
printf("\n---Phase 5: Getting String Length---\n");
|
|
printf("====================================\n");
|
|
// get user input
|
|
// do calculations
|
|
stringLen = getStringLength(newString);
|
|
// display results
|
|
printf("\nThe length of string '%s' is %d.\n", newString, stringLen);
|
|
printf("\nProgram End\n");
|
|
// return success
|
|
return 0;
|
|
} |