home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
Misc
/
M2V11-2.LHA
/
modula
/
dice
/
dice.lha
/
dynamic
/
dynamic.lha
/
objsrc
/
dostest2.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-04-29
|
375 b
|
22 lines
/*
* DOSTEST2.C
*
* test dos a bit more and a few other functions
*/
void
hyper_DosTest2()
{
char buf[64];
int n;
fhprintf(Output(), "Give me a line! ");
n = Read(Input(), buf, sizeof(buf)-1);
if (n > 0)
buf[n] = 0;
fhprintf(Output(), "You said: %s\n", buf);
fhprintf(Output(), "97 * %s = %d\n", buf, 97 * strtol(buf, (void *)0, 0));
}