1
0

feat(lab03): add exercice 04

This commit is contained in:
2026-04-02 22:03:14 +02:00
parent ff22715a6b
commit 8cfadd1bf9

View File

@@ -10,7 +10,7 @@
#define DATA_LENGTH 70 #define DATA_LENGTH 70
const static char* data = "J'ai le chocolat qui est collé au palais, ducoup j'arrive pas a parlé\0"; static const char* data = "J'ai le chocolat qui est collé au palais, ducoup j'arrive pas a parlé\0";
static char data_read[DATA_LENGTH] = {}; static char data_read[DATA_LENGTH] = {};
@@ -30,6 +30,8 @@ int ex_character_oriented(void) {
ret = write(fd, data, DATA_LENGTH); ret = write(fd, data, DATA_LENGTH);
fd = open(path, O_RDWR);
if(ret < 0) { if(ret < 0) {
printf("Failed to write\n"); printf("Failed to write\n");
return 1; return 1;