[cc65] input != output for C64

Date view Thread view Subject view

From: troy silvey (tbsilvey_at_juno.com)
Date: 2001-03-04 02:04:15


I made a very simple prog to test problems I
have been having with input from the user on
my C64 prog. Here's the code.

#include <stdio.h>
#include <stdlib.h>

void main()
{
	char store[10];
	puts("Enter between 1 and 10 chars, then 'enter'"); 
	gets(store);
	puts("Input is equal to ...");
	puts(store);
	return;
}


Compiled and run under dos the output is...

Enter between 1 and 10 chars, then 'enter'
1234abcd
Input is equal to ...
1234abcd
Press any key to continue.

When I run this from code with CC65, I have to  hit enter
twice after the '1234abcd' to get an output. Then the 
output looks like .....

jk
********

or this ...

**********

not the 1234abcd I hoped for.

The stars represent the checkered charater from the C64
I can't reproduce in email for you. ASCII 166 for the C64.
Is there a fix or work around I can use? 
Sorry to be causing so much trouble lately. :/

troy



________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:39 CET