Explorar o código

:art: Utilisation des nouvelles macros

Loquicom %!s(int64=6) %!d(string=hai) anos
pai
achega
f4ea6d89ae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mysh.c

+ 1 - 1
mysh.c

@@ -27,7 +27,7 @@ void test_write() {
 void show_current_dir(const char* before, const char* after) {
     char buffer[BUFFER_SIZE];
     if (getcwd(buffer, sizeof (buffer)) == NULL) {
-        perror("Erreur getcwd() ");
+        addperror("Erreur getcwd()");
     } else {
         if(before == NULL && after == NULL){
             printf("%s", buffer);