C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 31st, 2003, 05:57 PM
infamous41md's Avatar
infamous41md infamous41md is offline
not a fan of fascism (n00b)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2003
Location: ct
Posts: 2,756 infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 4 m 29 sec
Reputation Power: 26
manipulating char * strings

I am looking for, or looking to write if one doesnt exist, a library of functions to manipulate char * strings. I am aware that the string class already exists, but sending those type of strings across networks is a pain in the ***, i like to just stick with regular char * strings when dealing with sockets. The string class provides tons of extremely useful functions(replace, erase, find, etc.) and i would like a library that provides the same functionality for char * strings. I am also aware that class string provides functions to convert strings to char * strings, but the procedure is fairly annoying when it has to be done multiple times. So, im curious if anyone else has already written the library that i am describing?

edit: also i have several mini libraries i have written for various other things. when i use these i have to copy the desired header file into the working directory of my current project to use it. i want to create a folder of "My_Libraries"; how do i arrange it so that the compiler will search "My_Libraries" folder to find the desired header file?

Last edited by infamous41md : May 31st, 2003 at 06:00 PM.

Reply With Quote
  #2  
Old June 1st, 2003, 12:04 AM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
<cstring>
Functions:
memchr Search buffer for a character
memcmp Compare two buffers
memcpy Copy bytes to buffer from buffer
memmove Copy bytes to buffer from buffer
memset Fill buffer with specified character
strcat Append string
strchr Find character in string
strcmp Compare two strings
strcoll Compare two strings using locale settings
strcpy Copy string
strcspn Search string for occurrence of charcter set
strerror Get pointer to error message string
strlen Return string length
strncat Append substring to string
strncmp Compare some characters of two strings
strncpy Copy characters from one string to another
strpbrk Scan string for specified characters
strrchr Find last occurrence of character in string
strspn Get length of substring composed of given characters
strstr Find substring
strtok Sequentially truncate string if delimiter is found
strxfrm Transform string using locale settings

Last edited by 7stud : June 1st, 2003 at 12:09 AM.

Reply With Quote
  #3  
Old June 1st, 2003, 12:48 AM
infamous41md's Avatar
infamous41md infamous41md is offline
not a fan of fascism (n00b)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2003
Location: ct
Posts: 2,756 infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level)infamous41md User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 4 m 29 sec
Reputation Power: 26
thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > manipulating char * strings


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway