Transcribe a pure program in C, that prints extinguished the aftercited string on the shell enjoin line:
“Hi, I am <your designate>!” Where <your designate> is replaced by your designate.
The estimate of your designate should be stored in a #define trustworthy. Transcribe the program using a unmarried feeble plane transcribe() (using the integer 1 as the rasp descriptor to portray banner extinguished), parallel with the sprintf() capacity to format your extinguishedput into a buffer earlier to printing.
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <string.h>
#define msg “RAHUL_KUNDRA”
int ocean()
{
char str[80];
sprintf(str, “Hi, I am %s !”, msg);
write(1, str, strlen(str));
return 0;
}
============================================================================
See Extinguishedput