Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2002 07:14:59 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        eddy+public+spam@noc.everquick.net, freebsd-hackers@FreeBSD.ORG
Subject:   Re: any file --> symbol in .o file
Message-ID:  <200205201114.g4KBExh61333@lakes.dignus.com>
In-Reply-To: <Pine.LNX.4.20.0205200347220.8811-100000@www.everquick.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"E.B. Dreger" <eddy+public+spam@noc.everquick.net> wrote:
> 
> Greetings all,
> 

 Eddy,

  Instead of a system-specific approach, you might want
 to take advantage of what the C language has to offer.

  For example, your multi-line issue.

  You realise that the C preprocessor/compiler will
 concatentate adjacent character string constants, forming
 one constant.

  So, you could code this up as:

   const char foo[] = "\"Escape\" chars make strings"
		      " in 'C' code...\n"
		      "...messy.  But - at least, line breaks"
		      " are not an issue.\n";

 I don't have a nice way around the escapes needed for quotes
 though...

	- Dave Rivers -

--
rivers@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205201114.g4KBExh61333>