Skip to content
Snippets Groups Projects
Commit e9413be9 authored by Simion George's avatar Simion George
Browse files

DONE

parent 6d88f909
Branches master
No related tags found
No related merge requests found
Pipeline #74668 passed
......@@ -8,7 +8,7 @@ extern "C" {
#endif
/* TODO: Add puts() declaration. */
int puts(const char *string);
int puts(const char *str);
#ifdef __cplusplus
}
......
......@@ -2,14 +2,14 @@
#include <unistd.h>
int puts(const char *string)
int puts(const char *str)
{
int len;
for (len = 0; string[len]; len++)
for (len = 0; str[len]; len++)
;
write(1, string, len);
write(1, str, len);
write(1, "\n", 1);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment