Linux tputs

tputs(char *const str, int affcnt, int (*putfunc)(int))

设置终端输出显示参数

tputs(tmp, 1, putchar)

    49c1:    48 8d 3d 44 17 00 00     lea    0x1744(%rip),%rdi        # 610c <_IO_stdin_used@@Base+0x10c>
    49c8:    31 f6                    xor    %esi,%esi
    49ca:    e8 a1 dc ff ff           callq  2670 <tgetstr@plt>       // tgetstr("md", NULL)
    49cf:    48 89 c7                 mov    %rax,%rdi                // tmp=tgetstr("md", NULL)
    49d2:    48 85 c0                 test   %rax,%rax                // tmp ?= NULL
    49d5:    0f 84 6e fa ff ff        je     4449 <__sprintf_chk@plt+0x1cd9>
    49db:    48 8b 15 ee 45 00 00     mov    0x45ee(%rip),%rdx        # 8fd0 <putchar@GLIBC_2.2.5>
    49e2:    be 01 00 00 00           mov    $0x1,%esi
    49e7:    e8 24 da ff ff           callq  2410 <tputs@plt>         // tputs(tmp, 1, putchar)
    49ec:    e9 58 fa ff ff           jmpq   4449 <__sprintf_chk@plt+0x1cd9>

putchar 原型:

int putchar(int char)

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-12 14:42:01       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-12 14:42:01       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-12 14:42:01       58 阅读
  4. Python语言-面向对象

    2024-07-12 14:42:01       69 阅读

热门阅读

  1. uni-app怎样使用组件

    2024-07-12 14:42:01       21 阅读
  2. 深入解析补天平台:白帽黑客的奖金激励机制

    2024-07-12 14:42:01       22 阅读
  3. Vue数据更新页面不更新的问题

    2024-07-12 14:42:01       19 阅读
  4. Spring Boot有哪些优点和缺点

    2024-07-12 14:42:01       24 阅读
  5. Visual Studio 常用快捷键

    2024-07-12 14:42:01       24 阅读