Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Current date and time #475686
01/03/19 16:12
01/03/19 16:12
Joined: Jan 2019
Posts: 12
F
First Offline OP
Newbie
First  Offline OP
Newbie
F

Joined: Jan 2019
Posts: 12
I want to get the current date and time so to start I add this:

#include <stdlib.h>
#include <time.h>

I get:

Include file stdlib.h not found
Include file time.h not found

why?

Last edited by First; 01/03/19 16:13.
Re: Current date and time [Re: First] #475688
01/03/19 16:17
01/03/19 16:17
Joined: Feb 2017
Posts: 1,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,729
Chicago
Because this is Lite-C, not C.

Zorro comes pre-packaged with headers found in the "include" folder, not the standard C library.

Re: Current date and time [Re: AndrewAMD] #475695
01/04/19 01:16
01/04/19 01:16
Joined: Jan 2019
Posts: 12
F
First Offline OP
Newbie
First  Offline OP
Newbie
F

Joined: Jan 2019
Posts: 12
OK.

I am trying to get the current time of day. Hence trying to use that 'include'. So how is that done in Lite-C?

Re: Current date and time [Re: First] #475700
01/04/19 05:56
01/04/19 05:56
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1