...
Code Block | ||
---|---|---|
| ||
char const *CMUfullname = "Carnegie Mellon University";
char *school;
/* Get school from user input and validate */
if (strcmp(school, "CMU")) {
/* Allocate correct amount of space for copy */
strcpy(school, CMUfullname);
}
|
...