Re: [cc65] Strange behavior - bug?

From: Marc 'BlackJack Rintsch <marc1rintsch.de>
Date: 2009-08-31 07:34:16
On Monday 31 August 2009, Scott Hutter wrote:
> Im working on a command utility, nothing fancy, but when I run the
> code below, "a:" does not print.  It just prints a colon character. 
> Im using WinVICE and this is being compiled for the C128.  If I
> remove the "path" variable declaration it works fine.
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> void main(void)
> {
>     unsigned char curdrv[255] = "a";
>     unsigned char path[255] = "/";
>     unsigned char cmd[80] = "";

Isn't there a 256 byte limit for local variables and shouldn't the 
compiler err out on this?

Ciao,
	Marc 'BlackJack' Rintsch
-- 
Support bacteria - it's the only culture some people have!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 31 07:34:21 2009

This archive was generated by hypermail 2.1.8 : 2009-08-31 07:34:23 CEST