• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: porting endlines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: porting endlines


  • Subject: Re: porting endlines
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Wed, 28 Mar 2007 20:45:23 +0100


On 28 Mar 2007, at 20:40, Laurence Harris wrote:


On Mar 28, 2007, at 4:17 AM, Denis Osadchy wrote:

Hi,

we are porting application from CodeWarrior to Xcode and encountered
problem:
Application built with CodeWarrior writes \r (0x0D) as end of line
while ported to Xcode Application writes \n (0x0A).

For example line endings are written by strcat(str, "\n"). As I understand this
string should add 0x0A to the end of string regardless of platform.

Are you sure this is what you want? What kind of strings are they and how are they being used? It may be that the right thing to do in Mac OS X is very different than what the code did prior to Mac OS X.

I think a grep is the right thing to do here. Just alter all your code :)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >porting endlines (From: Denis Osadchy <email@hidden>)
 >Re: porting endlines (From: Laurence Harris <email@hidden>)

  • Prev by Date: Re: porting endlines
  • Next by Date: Re: Xcode project file and SVN
  • Previous by thread: Re: porting endlines
  • Next by thread: Re: porting endlines
  • Index(es):
    • Date
    • Thread