Re: Simplicity has a future
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 11:30:34 +0000
Ian Collins said:
Richard Heathfield wrote:
Ian Collins said:It might not be in your code, but the very fact that the code is legal C
#include <stdio.h>
int main(void)
{
char title__of__the__program[81] =
"C to C++ Translation\nONLY extra casts and renaming"
" of variables are allowed.\n\n\n\n\n";
printf( "%s\n", title__of__the__program );
But my code very definitely did not do that. If you want to introduce
arbitrary errors into your copy of the code, that's up to you, but the
error was not present in /my/ code.
makes me cringe
It shouldn't do. The char arr[3] = "123"; way of initialising an array of
characters, without null-terminating it, is a well-known C idiom.
and carry on checking my C code with my C++ compiler.
That approach is likely to bite you one day, if it hasn't silently done so
already.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: jacob navia
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: Keith Thompson
- Re: Simplicity has a future
- From: Tomás
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Harald van Dijk
- Re: Simplicity has a future
- From: Ian Collins
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Ian Collins
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Ian Collins
- Re: Simplicity has a future
- From: Richard Heathfield
- Re: Simplicity has a future
- From: Ian Collins
- Simplicity has a future
- Prev by Date: Re: Regarding free function
- Next by Date: Re: malloc() implementation
- Previous by thread: Re: Simplicity has a future
- Next by thread: Re: Simplicity has a future
- Index(es):
Relevant Pages
|