#1
  1. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95

    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 07:00 PM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2001
    Posts
    1,481
    Rep Power
    15
    <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 01:09 AM.
  4. #3
  5. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    thanks.

IMN logo majestic logo threadwatch logo seochat tools logo