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 12 user(s) online. 0 member(s) and 12 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd