The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
concatinating data kingofprussia UNIX for Dummies Questions & Answers 1 05-06-2008 07:16 PM
Grab terms leaving spacings intact Raynon Shell Programming and Scripting 3 11-09-2007 10:52 AM
leaving ALOM mode xramm SUN Solaris 3 10-09-2007 02:51 AM
delete string in a text file leaving the first occurrence gopskrish UNIX for Dummies Questions & Answers 12 10-31-2006 07:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-10-2005
Registered User
 

Join Date: Oct 2005
Posts: 25
copying or concatinating string from 1st bit, leaving 0th bit

Hello,

If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit.

How do i do it?
Reply With Quote
Forum Sponsor
  #2  
Old 11-10-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
I think you mean a byte, not a bit.
This is related to your other post, which is not readable, at least for me.
Code:
strcpy(str1, &str2[1]);
strcat(str1, &str2[1]);
Reply With Quote
  #3  
Old 11-10-2005
Registered User
 

Join Date: Oct 2005
Posts: 25
Thanks a lot!!!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0