delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/06/17:58:32

Message-ID: <003801be5223$fca8b380$e1f8c6c3@johans-dator>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Is that bug ?
Date: Sat, 6 Feb 1999 23:56:51 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson, Sweden    HTTP://come.to/jhewok  |
Primary mail: johan DOT he AT telia DOT com                  #UIN 12035895
Second: jhe75 AT hotmail DOT com    Third: johan_he AT yahoo DOT com
Leadprogrammer and FX-specialist at Real software
http://come.to/real_software
*************************************************************************


>I has a program:
>
>//////////////////////////////////////////////////////////////////////
>#include <stdlib.h>
>
>int main( void )
>{
>  char buffer[1024];
>  memcpy( buffer, NULL, sizeof( buffer ) );
>  return 0;
>}
>//////////////////////////////////////////////////////////////////////
>
>Under DOS, Unix that program is crashed, BUT
>under Windows that program won't crash.
>What is it ? Is that bug ?

I have no idéa what that piece of code is doing but here's the fact: Windows
is too good at errorhandling. Program in DOS so you see when your program
doesn't work correctly.

>
>- George
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019