Question: C Programming: My Question: How to use C language to ask filename from user and put file contents in a buffer and update the count

C Programming:

C Programming: My Question: How to use C language to ask filename

My Question: How to use C language to ask filename from user and put file contents in a buffer and update the count of bytes/words? (how to write getFname(..) method in C?)

typedef unsigned short u short; typedef unsigned int u int32; typedef unsigmed long u int64 uint64 getCode ( *buffer, int count) /* count = byte/word count */ egister u int64 total-0: ile (count- return XXXx; int main(...) I - ask filename from user and put file contents in a buffer and update the count of bytes/words. call getCodeOfunction to calculate code using one's complement. getFname (...) code -getcode (buffer,count) use code to validate any user-specified file'/ getFname (...) testvalidity (code, Fname)

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!