By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,417 Members | 1,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,417 IT Pros & Developers. It's quick & easy.

String hadling

P: 11
I need to discard final four charecters of a string. How it can be done?

Thanks in advance
Nov 3 '06 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 8,916
Get the length of the string

Write the NULL terminator (0) to the length - 4 in the array of characters.
Nov 3 '06 #2

P: 11

But i want to know any other method to do this like mid function in VB.
Nov 3 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.