Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

Understand the role of employer branding in talent management.

Answered: 1 week ago

Question

1 1 - s i n 2 ( y ) + 1 t a n 2 ( y )

Answered: 1 week ago

Question

LO5 Illustrate the steps in developing a base pay system.

Answered: 1 week ago

Question

LO3 Outline strategic compensation decisions.

Answered: 1 week ago