CSIT-401 Operating SystemsSimple ParserProject Part 1: 30 points
Create a C program that will read in a string and a single char delimiter. You will then split up the string based on the delimiter. You should do the splitting and length calculation in one function, that you will use in future projects. You must use the malloc function to allocate memory and copy data to the allocated memory. You may NOT use the string tokenizing methods built into the C language. Use command line arguments to read in the word and delimiter as input (https://www.tutorialspoint.com/cprogramming/c_command_line_arguments.htm(Links to an external site.)).
For example the inputa:bbbbA:ccwith a delimiter:will give the output
a Length 1bbbbA Length 5cc Length 2
For example the input123-456-7890with a delimiter-will give the output
123 Length 3456 Length 37890 Length 4
Turn in:
A program called parse1.c
Example:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here