9511_project01

project 1 for algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
commit a6c7a989910d002f69df67985dfb8ca32ebca4a6
parent 707e6ec4ac5b0aae6b62c65065ea7b4a03981d6a
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Thu, 11 Feb 2021 16:50:11 -0300

Update;

Diffstat:
Mprint_file.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/print_file.c b/print_file.c
@@ -88,13 +88,9 @@ status_t time_translator(time_t unix_time, char *res, size_t size, const char *f
     
     struct tm *tmp = gmtime(&unix_time);
 
-    if (strftime(res, size, format, tmp) == 0) {
-        (void) fprintf(stderr,  "strftime(3): cannot format supplied "
-                                "date/time into buffer of size %u "
-                                "using: '%s'\n",
-                                (unsigned int)sizeof(res), format);
+    if (strftime(res, size, format, tmp) == 0) 
         return ERROR_ALLOCATING_TIME;
-    }
+
     return OK;
 }