[cc65] Strange behavior - bug?

From: Scott Hutter <scott.hutter1gmail.com>
Date: 2009-08-31 04:15:18
Hey folks,

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] = "";

    while (1 == 1)
    {
        printf("%s:", curdrv);
        gets(cmd);

        if (!strcmp(cmd, "system"))
        {
            break;
        }
    }
}

----------------------------------------------------------------------
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 04:15:27 2009

This archive was generated by hypermail 2.1.8 : 2009-08-31 04:15:30 CEST