sweetomy
V2EX  ›  问与答

请教 fsevents 与 c 指针的问题

  •  
  •   sweetomy · Mar 31, 2015 · 2818 views
    This topic created in 4094 days ago, the information mentioned may be changed or developed.
    http://osxbook.com/software/fslogger/download/fslogger.c 这个编译出来 运行后的结果 FSE_ARG_STRING 66 string = vate/var/ 行 前面少几个字符 应该 是 /private/var/

    我于是把
    printf("%-6s = %s\n", "string", (char *)&(kea->data.str));
    指针向左移了4位?
    printf("%-6s = %s\n", "string", (char *)&(kea->data.str)-4);
    然后就显示全了 这...
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1012 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:21 · PVG 02:21 · LAX 11:21 · JFK 14:21
    ♥ Do have faith in what you're doing.