"cutting" a string 
Author Message
 "cutting" a string

Hi,
   I was wondering if there was a function out there to split a string
in two. (A kind of backward "strcat") For example cutting 5 chars off
the string "HelloThere" would return "Hello" and "There".

Thanks
--
================================================================
                     | Mountains should have holes in them,
    Paul Nally,      | To see the other side.
    Fujitsu SSL,     | Viewing through this aperture,
    Tokyo.           | Would save a considerable ride.
                     |          -Spike Milligan.
    -------------------------------------------------------

================================================================



Fri, 31 May 1996 16:04:34 GMT  
 "cutting" a string

Quote:

>Hi,
>   I was wondering if there was a function out there to split a string
>in two. (A kind of backward "strcat") For example cutting 5 chars off
>the string "HelloThere" would return "Hello" and "There".

An array of known size, or an arbitrary length array? (The former isn't
even worth talking about)

Quote:
>Thanks
>--
>================================================================
>                     | Mountains should have holes in them,
>    Paul Nally,      | To see the other side.
>    Fujitsu SSL,     | Viewing through this aperture,
>    Tokyo.           | Would save a considerable ride.
>                     |          -Spike Milligan.
>    -------------------------------------------------------

>================================================================

--
---Peter





Fri, 31 May 1996 19:55:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Source code for unix "Cut" utility

2. TreeView "cut" not exactly right

3. Clipboard and Explorer : how to distinguish betwwen "Copy"/"Cut" ?

4. S"String" and L"String"

5. remove() vrs fopen("""w")

6. Displaying binary data as ascii "1"'s and "0"'s

7. why aren't "string literals" called "string constants"?

8. Looking for "Shroud"/"Obfus"

9. char *str = "a string"; str = "another string"

10. ""help with TSR""

11. scanf("%s", string) or scanf("%s", &string)? Both work, yet...

12. Parse trees and "("")"

 

 
Powered by phpBB® Forum Software