Question
/** updateStudentName * * @brief updates the name of an existing student in the array of student structs, class * * @param s student struct
/** updateStudentName
*
* @brief updates the name of an existing student in the array of student structs, "class"
*
* @param "s" student struct that exists in the array "class"
* @param "name" new name of student "s"
* NOTE: if the length of name (including the null terminating character)
* is above MAX_NAME_SIZE, truncate name to MAX_NAME_SIZE
* @return FAILURE on failure, SUCCESS on success
* Failure if any of the following are true:
* (1) the student struct "s" can not be found in the array "class"
*/
int updateStudentName(struct student s, const char *name)
{
UNUSED_PARAM(s);
UNUSED_PARAM(name);
return FAILURE;
}
HELP CODING THIS IN C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started