summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:30:28 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-27 20:30:28 +0000
commit062bda5d62f3956ef5e94214dba63a4ade4e3855 (patch)
tree7d61bff0055dd0cd0fd1573c2a392c423608e620
parent0e5606dad1d2d4c06695ce009986a34905ac9313 (diff)
Tue, Feb 27, 2024, 12:30 PM -08:00
-rw-r--r--wk4/lect/compare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk4/lect/compare.c b/wk4/lect/compare.c
index 98ee8c2..7226c38 100644
--- a/wk4/lect/compare.c
+++ b/wk4/lect/compare.c
@@ -9,7 +9,7 @@ int main(void)
char *s = get_string("s: ");
char *t = get_string("t: ");
- if (s==t)
+ if (!strcmp(s,t))
{
printf("Same\n");
}