[ad_1]
Write a C program that prints exactly and that piece of art is useful” – Dora Korpar, 2015-10-19, followed by a new line, to the standard error.
You are not allowed to use any functions listed in the NAME section of the man (3) printf or man (3) puts
Your program should return 1
Your program should compile without any warnings when using the -Wall gcc option
This is what I have try
#include <stdio.h>
#include <unistd.h>
/**
* main - Entry Point
*
* Description: prints a string to the standard error
*
* Return: Always 1(Error)
*/
int main(void)
{
char err[] = "and that piece of art is useful\" - Dora Korpar, 2015-10-199\n";
write(2, err, 59);
return (1);
}
This is the error I am getting
[Got]
and that piece of art is useful" - Dora Korpar, 2015-10-199
(59 chars long)
[stderr]:
(0 chars long)
[Expected]
and that piece of art is useful" - Dora Korpar, 2015-10-19
(59 chars long)
[stderr]: [Anything]
(0 chars long)
[ad_2]