将一行(带空格)读入字符串程序集

时间:2016-12-23 09:33:55

标签: assembly x86 stdin fgets

  ; push stdin here
    push MAX_N             ; maximum number of characters to be read 
    push offset string     ;pointer to an array of chars
    call fgets
    add esp,12

我试着读一行“string”变量(也有空格)。我无法用scanf做到这一点所以我选择使用fgets

但是,我怎样才能推动标准输入?

0 个答案:

没有答案