TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JAN WAGEMAKERS
from: DANNY CAUTAERT
date: 1997-12-07 00:04:00
subject: leal

-=> Quoting Jan Wagemakers to Tom Torfs <=-
 JW>               time_t time(time_t *t);
 JW>               If t is non null, the return value is also stored
 JW> in  the
 JW>               memory pointed to by t.
 JW> So, the following works perfect :-)
 JW> /* (tijd.s)
 JW>         .globl main
 JW> main:
 JW>         pushl $0
 JW>         call time
 JW>         addl $4,%esp
 JW> But still I don't understand :-( why it doesn't work when I do
 JW> something like :
 JW>         pushl $currenttime
I don't know AT&T syntax but aren't you pushing a value here?
You have to push a pointer, ie, the address of the memory-location containing 
the time-structure.
 _  Greetings,
|_)anny, LIVR!
--- FEddi 0.9pl7 via ifcico
---------------
* Origin: Powdered ToastMan * Oostende * Debian/GNU Linux (2:291/1805.666)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.