CS480-Projects/Preparation/Phase5/Phase5_Prep.c
cdez ca321e6c4e Good Stopping point for CS480 Prep
++ Phases 1-6 Preparation
++ C, H, Makefiles
2024-01-06 21:56:16 -07:00

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;
}