need help in creating a C(NOT C++ OR C#) function that will help to split a string that is present in each line of the text file. The words can vary from 7-10 letters (min-max) followed by some brief description. Not allowed to use beak,continue,exit. Example "Lemonade Drink- Made of Lemon" I want the function to seperate "Lemonade" and "Drink-Made of Lemon". "Bolognese Food-Italian meat based Sauce" I want the function to seperate "Bolognese" and " Food-Italian meat based Sauce".
I need help in creating a C(NOT C++ OR C#) function that will help to split a string that is present in each line of the text file. The words can vary from 7-10 letters (min-max) followed by some brief description. Not allowed to use beak,continue,exit.
Example
"Lemonade Drink- Made of Lemon" I want the function to seperate "Lemonade" and "Drink-Made of Lemon".
"Bolognese Food-Italian meat based Sauce" I want the function to seperate "Bolognese" and " Food-Italian meat based Sauce".
Step by step
Solved in 2 steps