Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
String hadling
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
saravanakumar
New Member
Join Date:
Sep 2006
Posts:
11
#1
String hadling
Nov 3 '06, 08:19 AM
Hi,
I need to discard final four charecters of a string. How it can be done?
Thanks in advance
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#2
Nov 3 '06, 10:12 AM
Get the length of the string
Write the NULL terminator (0) to the length - 4 in the array of characters.
Comment
Post
Cancel
saravanakumar
New Member
Join Date:
Sep 2006
Posts:
11
#3
Nov 3 '06, 01:34 PM
Thanks!
But i want to know any other method to do this like mid function in VB.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment