Register | Login
Forum Index > Bugs and Fixes > Different results depending on the OS
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1859] Different results depending on the OS - posted: 2016-05-07 16:42:31
Code:
program PE32_CUI 'Test';
#include 'platform_def.zir';
#include 'console.zir';

const BUFLEN = 100;
char buf[BUFLEN];

print 'Enter something:';
gets(@buf, sizeof buf);
println 'You entered: "', buf, '"';

wait_key();
ExitProcess(0);

Result:

Code:
program KOLIBRI32 'Test';
#include 'platform_def.zir';
#include 'console.zir';

const BUFLEN = 100;
char buf[BUFLEN];

print 'Enter something:';
gets(@buf, sizeof buf);
println 'You entered: "', buf, '"';

wait_key();
ExitProcess(0);

Result:
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd