Design and write a C filter which reads from standard input, replaces all the occurrences of the characters supplied in a command line argument with the corresponding characters in the second command line argument, and writes the result to the standard output; all other characters are to be written to output unchanged.
The extra command line option -f will make the program replace only the first occurrence of characters in the first command line argument with the corresponding character in the second command line argument.
[url removed, login to view] can force any order of the command line arguments as you see fit.
[url removed, login to view] should attempt to read in blocks of characters, modify these blocks, then write them to the standard output rather than read one character at a time.
[url removed, login to view] the number of characters in the first argument differs from the number of characters in the second argument it is up to you to decide how to handle this situation, but be sure that you document it.
16 freelancere byder i gennemsnit $53 for dette job
Hi, We can do this for you. You will be assured of timely delivery and fully documented rules/logic. We look forward to working on this project. Thanks and regards, Vandana