Question: Please explain thoroughly 20. Complete the function that extract the extension from a file name. file name points to a string containing a file name.

 Please explain thoroughly 20. Complete the function that extract the extension
Please explain thoroughly

20. Complete the function that extract the extension from a file name. file name points to a string containing a file name. The function should store the extension on the file name in the string pointed to by extension. For example, if the file name is "memo.txt', the function will store "txt in the string pointed to by extension. If the file name doesn't have an extension, the function should store an empty string (a single null character) in the string pointed to by extension. You can use string library functions such as strycpy void get extension (char kfile namer char *extension)

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 Databases Questions!