22 lines
484 B
C

#include "src.h"
#include <stdlib.h>
#include <string.h>
void c8() {
char *names_equal = malloc(sizeof(char) * 256);
if (!strcmp(FIRST_NAME, LAST_NAME)) {
names_equal = "Strings are the same";
} else {
names_equal = "Strings are different";
}
solve(8, "Compares two strings",
fmtstr("Comparing '%s' to '%s'\nSame?: %s", FIRST_NAME, LAST_NAME,
names_equal));
}
int main() {
print_header();
c8();
return 0;
}