flat assembler
Message board for the users of flat assembler.

Index > Main > Getting input by calling a stream

Author
Thread Post new topic Reply to topic
shaolin007



Joined: 03 Sep 2004
Posts: 65
shaolin007 16 Jun 2005, 14:08
I'm trying to get input by using the C function fgets() and I'm trying to use stdin stream as the 3rd parameter to the function. The function is suppose to go like this...

Code:

fgets( *buffer, sizeof(buffer), File *stream);

    


How would I define stdin in assembly so I could get input from the keyboard?
Post 16 Jun 2005, 14:08
View user's profile Send private message Reply with quote
shaolin007



Joined: 03 Sep 2004
Posts: 65
shaolin007 16 Jun 2005, 15:47
Ok, in the stdio header 'stdin' is defined as (&_iob[0]) which is imported from what? MSVCRT.DLL maybe? Confused
Post 16 Jun 2005, 15:47
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.