Skip to content

Commit

Permalink
Soumission J3
Browse files Browse the repository at this point in the history
  • Loading branch information
yanis-sol committed Nov 11, 2023
1 parent 6c4c557 commit 381abe2
Show file tree
Hide file tree
Showing 7 changed files with 2,271 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travail/jalon1/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ int main(int argc, char *argv[]) {
printf("\nMessage envoyé. Vous pouvez envoyer un nouveau message :\n");
fflush(stdout);

if (strcmp(buf, "/quit\n") == 0) {
printf("Connexion fermée\n");
if (strcmp(buf, "/quit\n") == 0) {
printf("Connexion fermée\n");
break;
}
}
Expand Down
14 changes: 14 additions & 0 deletions travail/jalon3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CC = gcc
CFLAGS = -Wall -g -Wno-switch

all: server client

server: server.c
$(CC) $(CFLAGS) -o server server.c

client: client.c
$(CC) $(CFLAGS) -o client client.c

clean:
rm -f server client

Loading

0 comments on commit 381abe2

Please sign in to comment.