diff options
Diffstat (limited to 'wk4/lect')
-rw-r--r-- | wk4/lect/compare.c | 2 |
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"); } |