delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/04/18:24:37

Date: Mon, 4 Sep 1995 12:37:42 +22305931 (WAUST)
From: Ron Grunwald <rgrunwal AT bluering DOT cowan DOT edu DOT au>
Sender: Ron Grunwald <rgrunwal AT bluering DOT cowan DOT edu DOT au>
Reply-To: Ron Grunwald <rgrunwal AT bluering DOT cowan DOT edu DOT au>
Subject: Re: Crash with strcpy under windows
To: Laurent-Pierre Gilliard <gilliard AT rd DOT lectra DOT fr>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu


On 30 Aug 1995, Laurent-Pierre Gilliard wrote:

> Using strcpy (strcpy(file,"C:\\test.txt")) makes a crash when running 
> from windows. I include std.h. So why????
> 
> 

I hope you defined 'file' as
 char file[80];  /*for example*/

and not:  char* file;


Ron.



 ********************************************************************
 | Author.............. Ron Grunwald                                | 
 | Internet............ rgrunwal AT bluering DOT cowan DOT edu DOT au              |
 | Phone............... (09)273 8027 or (09)273 8468                |
 |------------------------------------------------------------------|
 | Department.......... Computer Operations and Systems Management  |
 | Division/Faculty.... Information Technology                      | 
 | Institute........... Edith Cowan University, Churchlands         | 
 | Location............ Perth, Western Australia                    |
 ********************************************************************
 "I don't have any solution but I certainly admire the problem!"





- Raw text -


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