•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 427,853 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,692 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 444 | Replies: 11
![]() |
Hey singal.mayank, well what i can see is that you know what you want, but why don't you try implement them. You know that sentence can be delimited by the multiple chars. . ! and there are many other which need to considered as well.
Jeph has already give an function which can tokenise the string. May be you should see if the following helps you out.
1. Make a list of char which can deliminate a sentence
2. Use a string tokeniser function to find if there are any above list of deliminator char
3. If so token the string and store them in a buffer or print as you where doing
An alternative solution for strtok is to use fgets and ssanf functions, which i personal prefer use them.
ssharish
Jeph has already give an function which can tokenise the string. May be you should see if the following helps you out.
1. Make a list of char which can deliminate a sentence
2. Use a string tokeniser function to find if there are any above list of deliminator char
3. If so token the string and store them in a buffer or print as you where doing
An alternative solution for strtok is to use fgets and ssanf functions, which i personal prefer use them.
ssharish
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- We need to laugh... (Geeks' Lounge)
- YaBasic: The beginners choice (Computer Science and Software Design)
Other Threads in the C Forum
- Previous Thread: C code for LINE SEPARATING
- Next Thread: Modify some char* characters


Linear Mode