CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Special/extra string functions

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

Special/extra string functions
PostPosted: Mon Jul 14, 2008 12:15 am     Reply with quote

Is anyone aware of any collection of string functions that can extend on the CCS fuctions. I'm sure i've stumbled accross a collection but can't remember where. I'm looking for some of the functions found in VB6 like the Split command which splits a string at the predefined delimitter and then puts each 'chunk' in an array. I should be able to write my own but was wondering if anyone has any available for sharing...
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

PostPosted: Tue Jul 15, 2008 6:49 am     Reply with quote

Does no one have any extra functions to extend the use of the built in CCS string operators? Was really hoping someone has already written some and is willing to share.
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Tue Jul 15, 2008 8:56 am     Reply with quote

The closest built-in function for string splitting is strtok(). Have you looked in the "Code Library" forum for string processing code?
_________________
Andrew
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 15, 2008 1:27 pm     Reply with quote

Threads with examples of how to use strtok():
http://www.ccsinfo.com/forum/viewtopic.php?t=22049
http://www.ccsinfo.com/forum/viewtopic.php?t=34928
crystal_lattice



Joined: 13 Jun 2006
Posts: 164

View user's profile Send private message

PostPosted: Wed Jul 16, 2008 12:22 am     Reply with quote

OOPS! Embarassed Don't know why I missed that one... I looked in the help file for an appropriate function but did not find any. I've also searched the Code lib but not with the keyword 'token', suppose I would have found a solution if I used it. Thanx Andrewg and PCM!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group