Question: Need help with this please! EE 3233 Systems Programming for Engrs (Fall 2018) Programming Assignment 1 Name: Score:/70 Submit the assignment at the blackboard. The

 Need help with this please! EE 3233 Systems Programming for EngrsNeed help with this please!

EE 3233 Systems Programming for Engrs (Fall 2018) Programming Assignment 1 Name: Score:/70 Submit the assignment at the blackboard. The file name should be named as name HW1.c Due date: Monday, 24t of the September 2018 by 11:59 PM 1. Late submission won't be accepted 2. Shared code (except reference code as directed) will bring severe consequence-code scanning will be performed by default. Write a C code that copies one file from values as follows the source file to destination file with two offset Same HW1 source file src off destination file dst off 1. name, HWI program copies the contents of source file (source flle) from (sre off byte to the end of the source.fle to the destination file (destination file) at 2. The program should accept following commands S ame HW1 source file destination ile S ame HW1 source jfile src off destination file If the offset option is omitted, by default, the omitted offset becomes 0. Other than three commands specified above, an error message should be returned if you try a command such as Same HW1 src off source file dst off destination file 3. Validation check should be performed for offset values (negative and float offsets are not accepted). 4. If the destination file exists, existing content of that file should be preserved. The contents of the destination file will be kept before and including the 5. When the specified starting point to copy is greater than the file size of the source Jile, nothing will be copied (the size of the destination jile will be zero if the destination file does not exit) Tips: Use 'getiatt-For 'getlongt- functions to convert the numeric input string to integer defined in tipLhdr h header file. You can refer two sample codes (lelo/copye and Nio/seek.mc) covered in the lecture work in thr nleio, directory peen aa the source , of the EE 3233 Systems Programming for Engrs (Fall 2018) Programming Assignment 1 Name: Score:/70 Submit the assignment at the blackboard. The file name should be named as name HW1.c Due date: Monday, 24t of the September 2018 by 11:59 PM 1. Late submission won't be accepted 2. Shared code (except reference code as directed) will bring severe consequence-code scanning will be performed by default. Write a C code that copies one file from values as follows the source file to destination file with two offset Same HW1 source file src off destination file dst off 1. name, HWI program copies the contents of source file (source flle) from (sre off byte to the end of the source.fle to the destination file (destination file) at 2. The program should accept following commands S ame HW1 source file destination ile S ame HW1 source jfile src off destination file If the offset option is omitted, by default, the omitted offset becomes 0. Other than three commands specified above, an error message should be returned if you try a command such as Same HW1 src off source file dst off destination file 3. Validation check should be performed for offset values (negative and float offsets are not accepted). 4. If the destination file exists, existing content of that file should be preserved. The contents of the destination file will be kept before and including the 5. When the specified starting point to copy is greater than the file size of the source Jile, nothing will be copied (the size of the destination jile will be zero if the destination file does not exit) Tips: Use 'getiatt-For 'getlongt- functions to convert the numeric input string to integer defined in tipLhdr h header file. You can refer two sample codes (lelo/copye and Nio/seek.mc) covered in the lecture work in thr nleio, directory peen aa the source , of the

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!