Question: The following are two unsafe standard C library functions. gets ( char * str ) strcat ( char * dest , char * src )

The following are two unsafe standard C library functions.
gets (char *str)
strcat (char *dest, char * src)
a)(5 points) Explore them using UNIX man pages or any other material on C programming
and explain why they are unsafe.
b)(5 points) Find a safer alternative for each of them. Why are the suggested alternatives
safer? Provide justifications.
The following are two unsafe standard C library

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!