Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use c library function fgets in assembly language?

Tags:

c

assembly

abi

As the title described, how to use c library function fgets in assembly language? Indeed, I want to know how to get the file pointer to stdin. Thanks for your reply.

like image 239
Summer_More_More_Tea Avatar asked Oct 25 '25 11:10

Summer_More_More_Tea


1 Answers

you can write a simple program using fgets and compile it with gcc -S to see how to do it

like image 92
Thomas Dignan Avatar answered Oct 28 '25 02:10

Thomas Dignan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!