|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
|
#2
|
|||
|
|||
|
<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. |
|
#3
|
||||
|
||||
|
thanks.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > manipulating char * strings |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|